summaryrefslogtreecommitdiff
path: root/include/input/InputEventLabels.h
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2014-08-20 14:28:47 -0700
committer Colin Cross <ccross@android.com> 2014-08-20 14:28:47 -0700
commitb1ce49b2ed9ea953a7f534b4f36b6acb56fc0749 (patch)
tree6f3063776259b327310d3dbf95a11b4499578590 /include/input/InputEventLabels.h
parentb1f0f288e30c0448cabd46d19c60b3bd0d272f74 (diff)
atrace: avoid unnecessary writes to trace_clock
Writing to trace_clock erases the trace buffer, even if the value hasn't changed. This prevents use of --async_start and --async_dump to leave background tracing running and dump after an even that needs debugging, because --async_dump writes to trace_clock and resets the buffer before it can read it. Read and parse the current value from trace_clock before writing, and skip the write if the value isn't changing. Change-Id: Ia2ec5bb654fb0bd179771b511ff261731ba47dca
Diffstat (limited to 'include/input/InputEventLabels.h')
0 files changed, 0 insertions, 0 deletions