DescriptionAdd shell::Tracer object and wire up to --trace-startup on Android
This adds an object to keep track of tracing state and wires it into
the android mojo shell main. When --trace-startup is passed in on the
command line (or via the intent extra args thingy on Android) the shell
enables tracing for itself. It stops tracing when it shuts down cleanly
or 5 seconds elapse. On desktop, this writes into a file named
"mojo_shell.trace" in the CWD. On Android, this writes to
/data/data/org.chromium.mojo.shell/cache/tmp/mojo_shell.trace.
Follow-up patches will patch in trace data from the tracing service into
this file.
R=qsr@chromium.org, viettrungluu@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/f0f1860a52c87faa45f372e1b5b6a8948ae43249
Patch Set 1 #
Total comments: 11
Patch Set 2 : rm printfs #
Total comments: 3
Patch Set 3 : review comments #
Total comments: 2
Patch Set 4 : fix android Tracer lifetime #Patch Set 5 : rebase #
Messages
Total messages: 13 (1 generated)
|