summaryrefslogtreecommitdiff
path: root/simpleperf/command.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2018-03-19 13:58:51 -0700
committerYabin Cui <yabinc@google.com>2018-03-20 16:07:40 -0700
commitbbaa51258b0c396d44d3ee5e0bfde910e0e31c6e (patch)
tree58906c25f7e6cc4fab9c53543fc342e231116190 /simpleperf/command.cpp
parent21c00a237885070b1cffeed32d04fa1afa821bd9 (diff)
downloadextras-bbaa51258b0c396d44d3ee5e0bfde910e0e31c6e.tar.gz
simpleperf: Add trace-sched command.
trace-sched command traces system-wide process runtime events, and reports potential spin loops. Bug: http://b/74443296 Test: run simpleperf_unit_test. Test: run `simpleperf trace-sched` manually. Change-Id: I6d5205442fe17019f214e9966f93636b1db9f1ef
Diffstat (limited to 'simpleperf/command.cpp')
-rw-r--r--simpleperf/command.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/simpleperf/command.cpp b/simpleperf/command.cpp
index ee03720b..63a7dfd9 100644
--- a/simpleperf/command.cpp
+++ b/simpleperf/command.cpp
@@ -81,6 +81,7 @@ extern void RegisterReportCommand();
extern void RegisterReportSampleCommand();
extern void RegisterStatCommand();
extern void RegisterDebugUnwindCommand();
+extern void RegisterTraceSchedCommand();
class CommandRegister {
public:
@@ -95,6 +96,7 @@ class CommandRegister {
RegisterRecordCommand();
RegisterStatCommand();
RegisterDebugUnwindCommand();
+ RegisterTraceSchedCommand();
#endif
}
};