From 3b5aebb04613bdea97c28a3d20c7c9e6508eb711 Mon Sep 17 00:00:00 2001 From: Alexey Kuzmin Date: Sat, 10 Feb 2018 15:11:38 +0000 Subject: [PATCH] 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 --- libcutils/include/cutils/trace.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)