From f65859e8e1414ffba1b165be9d89745d42ffec79 Mon Sep 17 00:00:00 2001 From: "asharif@chromium.org" Date: Mon, 4 Feb 2013 20:00:25 +0000 Subject: 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 --- chromeos/dbus/mock_debug_daemon_client.h | 1 + 1 file changed, 1 insertion(+) (limited to 'chromeos/dbus/mock_debug_daemon_client.h') 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, -- cgit v1.1