diff options
author | dmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 01:34:00 +0000 |
---|---|---|
committer | dmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 01:34:00 +0000 |
commit | a6128bdd1863be6b2c92acfb759be694b4ac736d (patch) | |
tree | 56258a400fab57010ff7043dd2f27fc24ea14909 /chrome/browser/automation/testing_automation_provider.h | |
parent | 76891b96bb1356c5d6def2562c2f7cc334cf1c75 (diff) | |
download | chromium_src-a6128bdd1863be6b2c92acfb759be694b4ac736d.zip chromium_src-a6128bdd1863be6b2c92acfb759be694b4ac736d.tar.gz chromium_src-a6128bdd1863be6b2c92acfb759be694b4ac736d.tar.bz2 |
Add a PyAuto API to dump heap profiles.
BUG=114301
TEST=none
Review URL: http://codereview.chromium.org/9169024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/testing_automation_provider.h')
-rw-r--r-- | chrome/browser/automation/testing_automation_provider.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h index 2df1da2..b2a6478 100644 --- a/chrome/browser/automation/testing_automation_provider.h +++ b/chrome/browser/automation/testing_automation_provider.h @@ -679,6 +679,14 @@ class TestingAutomationProvider : public AutomationProvider, void TriggerBrowserActionById(base::DictionaryValue* args, IPC::Message* reply_message); +#if defined(OS_LINUX) || defined(OS_CHROMEOS) + // Dumps a heap profile. + // It also checks whether the heap profiler is running, or not. + // Uses the JSON interface for input/output. + void HeapProfilerDump(base::DictionaryValue* args, + IPC::Message* reply_message); +#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) + // Responds to the Find request and returns the match count. void FindInPage(Browser* browser, base::DictionaryValue* args, |