summaryrefslogtreecommitdiffstats
path: root/libcutils/include
diff options
context:
space:
mode:
authorAlexey Kuzmin <alexeykuzmin@google.com>2018-02-10 15:11:38 +0000
committerAlexey Kuzmin <alexeykuzmin@google.com>2018-02-13 18:29:40 +0000
commit3b5aebb04613bdea97c28a3d20c7c9e6508eb711 (patch)
treed6d602c0fcb41ab2f42b2af04389d26b60ef1984 /libcutils/include
parent1cb765c86737f67e953375a70e2de9339b4023f6 (diff)
downloadsystem_core-3b5aebb04613bdea97c28a3d20c7c9e6508eb711.tar.gz
system_core-3b5aebb04613bdea97c28a3d20c7c9e6508eb711.tar.bz2
system_core-3b5aebb04613bdea97c28a3d20c7c9e6508eb711.zip
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 Merged-In: I94172e379354ec3418321b8151e6182cec2e886c Change-Id: I94172e379354ec3418321b8151e6182cec2e886c
Diffstat (limited to 'libcutils/include')
-rw-r--r--libcutils/include/cutils/trace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcutils/include/cutils/trace.h b/libcutils/include/cutils/trace.h
index fcbdc9b79..b2779b2ef 100644
--- a/libcutils/include/cutils/trace.h
+++ b/libcutils/include/cutils/trace.h
@@ -72,7 +72,8 @@ __BEGIN_DECLS
#define ATRACE_TAG_DATABASE (1<<20)
#define ATRACE_TAG_NETWORK (1<<21)
#define ATRACE_TAG_ADB (1<<22)
-#define ATRACE_TAG_LAST ATRACE_TAG_ADB
+#define ATRACE_TAG_VIBRATOR (1<<23)
+#define ATRACE_TAG_LAST ATRACE_TAG_VIBRATOR
// Reserved for initialization.
#define ATRACE_TAG_NOT_READY (1ULL<<63)