replicant-frameworks_native/cmds/atrace
Colin Cross b1ce49b2ed 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
2014-08-20 14:28:47 -07:00
..
Android.mk atrace: clean up tracing option enabling 2012-12-07 14:03:07 -08:00
MODULE_LICENSE_APACHE2 Add the atrace utility. 2012-02-23 15:55:31 -08:00
NOTICE Add the atrace utility. 2012-02-23 15:55:31 -08:00
atrace.cpp atrace: avoid unnecessary writes to trace_clock 2014-08-20 14:28:47 -07:00