summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/testing_automation_provider.h
diff options
context:
space:
mode:
authordmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-16 01:34:00 +0000
committerdmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-16 01:34:00 +0000
commita6128bdd1863be6b2c92acfb759be694b4ac736d (patch)
tree56258a400fab57010ff7043dd2f27fc24ea14909 /chrome/browser/automation/testing_automation_provider.h
parent76891b96bb1356c5d6def2562c2f7cc334cf1c75 (diff)
downloadchromium_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.h8
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,