Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(809)

Unified Diff: components/tracing/docs/memory_infra_startup_tracing.md

Issue 1688043004: [docs] Document MemoryInfra startup tracing on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Primiano's comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/tracing/docs/memory_infra_startup_tracing.md
diff --git a/components/tracing/docs/memory_infra_startup_tracing.md b/components/tracing/docs/memory_infra_startup_tracing.md
index 02ac7ad132c529ff8890bbfbb30b0b7eb3379816..138be30933cede10ce60591f430494cda14c74cf 100644
--- a/components/tracing/docs/memory_infra_startup_tracing.md
+++ b/components/tracing/docs/memory_infra_startup_tracing.md
@@ -11,6 +11,22 @@ Start Chrome as follows:
--trace-startup-file=/tmp/trace.json \
--trace-startup-duration=7
+On Android, enable startup tracing and start Chrome as follows:
+
+ $ build/android/adb_chrome_public_command_line \
+ --trace-startup=-*,disabled-by-default-memory-infra \
+ --trace-startup-file=/sdcard/Download/trace.json \
+ --trace-startup-duration=7
+
+ $ build/android/adb_run_chrome_public
+
+ $ adb pull /sdcard/Download/trace.json # After tracing.
+
+Note that startup tracing will be enabled upon every Chrome launch until you
petrcermak 2016/02/11 12:20:49 I realized that I should add the note about disabl
+delete the command-line flags:
+
+ $ build/android/adb_chrome_public_command_line ""
+
This will use the default configuration: one memory dump every 250 ms with a
detailed dump ever two seconds.
@@ -37,6 +53,21 @@ specify a custom trace config file as follows:
$ chrome --no-sandbox --trace-config-file=/tmp/trace.config
+On Android, the config file has to be pushed to a fixed file location:
+
+ $ adb root
+ $ adb push /tmp/trace.config /data/local/chrome-trace-config.json
+
+ $ build/android/adb_run_chrome_public
+
+ $ adb pull /sdcard/Download/trace.json # After tracing.
+
+Make sure that the "result_file" location is writable by the Chrome process on
+Android (e.g. "/sdcard/Download/trace.json"). Note that startup tracing will be
+enabled upon every Chrome launch until you delete the config file:
+
+ $ adb shell rm /data/local/chrome-trace-config.json
+
## Related Pages
* [General information about startup tracing](https://sites.google.com/a/chromium.org/dev/developers/how-tos/trace-event-profiling-tool/recording-tracing-runs)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698