summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alexey Kuzmin <alexeykuzmin@google.com> 2018-02-10 15:17:57 +0000
committer Alexey Kuzmin <alexeykuzmin@google.com> 2018-02-12 10:17:40 +0000
commit808b51c4b9df05001618e9462876343f8f537b69 (patch)
treedc4cf64a3a239b197ac16c7642d037b82ef5e447
parentdf2824c1328d9cc50db49456824771cdb78ae515 (diff)
Add tracing tags to vibrator
Now all somewhat time-consuming methods of the VibratorService are surrounded by traceBegin/traceEnd blocks. The vibration itself is surrounded with asyncTrace block. Test: Run "systrace vibrator" and see the time consumption report. Bug: 73000045 Change-Id: I68cfc4d856e9c0944c3af6c350d3fd690fd3401e
-rw-r--r--cmds/atrace/atrace.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp
index 1b9057977c..a87212b765 100644
--- a/cmds/atrace/atrace.cpp
+++ b/cmds/atrace/atrace.cpp
@@ -116,6 +116,7 @@ static const TracingCategory k_categories[] = {
{ "database", "Database", ATRACE_TAG_DATABASE, { } },
{ "network", "Network", ATRACE_TAG_NETWORK, { } },
{ "adb", "ADB", ATRACE_TAG_ADB, { } },
+ { "vibrator", "Vibrator", ATRACE_TAG_VIBRATOR, {}},
{ k_coreServiceCategory, "Core services", 0, { } },
{ k_pdxServiceCategory, "PDX services", 0, { } },
{ "sched", "CPU Scheduling", 0, {