diff options
author | Alexey Kuzmin <alexeykuzmin@google.com> | 2018-02-10 15:11:38 +0000 |
---|---|---|
committer | Alexey Kuzmin <alexeykuzmin@google.com> | 2018-02-13 18:29:40 +0000 |
commit | 3b5aebb04613bdea97c28a3d20c7c9e6508eb711 (patch) | |
tree | d6d602c0fcb41ab2f42b2af04389d26b60ef1984 | |
parent | 1cb765c86737f67e953375a70e2de9339b4023f6 (diff) | |
download | core-3b5aebb04613bdea97c28a3d20c7c9e6508eb711.tar.gz core-3b5aebb04613bdea97c28a3d20c7c9e6508eb711.tar.bz2 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
-rw-r--r-- | libcutils/include/cutils/trace.h | 3 |
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) |