diff options
author | asharif@chromium.org <asharif@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-04 20:00:25 +0000 |
---|---|---|
committer | asharif@chromium.org <asharif@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-04 20:00:25 +0000 |
commit | f65859e8e1414ffba1b165be9d89745d42ffec79 (patch) | |
tree | fe046f738bcf77820b0e5047ecef8b7a9304ca2a /chromeos/dbus/mock_debug_daemon_client.h | |
parent | 5bb22d0294fb13c712f8185c1e6d8e66655d7443 (diff) | |
download | chromium_src-f65859e8e1414ffba1b165be9d89745d42ffec79.zip chromium_src-f65859e8e1414ffba1b165be9d89745d42ffec79.tar.gz chromium_src-f65859e8e1414ffba1b165be9d89745d42ffec79.tar.bz2 |
Chrome: Enable ChromeOS-Wide-Profiling
We want to gather perf data collected by running "perf record -a" from opt-in
ChromeOS users. This CL enables that.
We use debugd in ChromeOS to run quipper, a program that runs "perf record -a"
and returns that data in a protobuf. We do this every 12 hours for 2 seconds.
The overhead is minimal (5% slowdown for 2 seconds on "lumpy" machines).
BUG=157508
TEST=Manual:
Change the perf record interval from 12 hours to 1 minute and set a
breakpoint on ParseProtoIfValid(). It gets hit and the protobuf is parsed
properly.
Review URL: https://chromiumcodereview.appspot.com/11185038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180484 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/mock_debug_daemon_client.h')
-rw-r--r-- | chromeos/dbus/mock_debug_daemon_client.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chromeos/dbus/mock_debug_daemon_client.h b/chromeos/dbus/mock_debug_daemon_client.h index 56cd2c4..5f4813f 100644 --- a/chromeos/dbus/mock_debug_daemon_client.h +++ b/chromeos/dbus/mock_debug_daemon_client.h @@ -23,6 +23,7 @@ class MockDebugDaemonClient : public DebugDaemonClient { MOCK_METHOD1(GetNetworkStatus, void(const GetNetworkStatusCallback&)); MOCK_METHOD1(GetModemStatus, void(const GetModemStatusCallback&)); MOCK_METHOD1(GetNetworkInterfaces, void(const GetNetworkInterfacesCallback&)); + MOCK_METHOD2(GetPerfData, void(uint32_t, const GetPerfDataCallback&)); MOCK_METHOD1(GetAllLogs, void(const GetLogsCallback&)); MOCK_METHOD1(GetUserLogFiles, void(const GetLogsCallback&)); MOCK_METHOD1(RequestStopSystemTracing, |