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

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: 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..193b8b0b5b9855a311d667f2447eac471b3dcd31 100644
--- a/components/tracing/docs/memory_infra_startup_tracing.md
+++ b/components/tracing/docs/memory_infra_startup_tracing.md
@@ -11,6 +11,19 @@ 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 \
+ --no-sandbox \
Primiano Tucci (use gerrit) 2016/02/11 12:04:55 no need of --no-sandbox on Android. Let's keep the
petrcermak 2016/02/11 12:20:49 Done.
+ --trace-startup=-*,disabled-by-default-memory-infra \
+ --trace-startup-file=/storage/emulated/legacy/Download/trace.json \
+ --trace-startup-duration=7
+
+ $ build/android/adb_run_chrome_public # Public.
+ $ clank/bin/adb_run_chrome # Googlers only.
Primiano Tucci (use gerrit) 2016/02/11 12:04:55 hmm remove this, I imagine internal folks know how
+
+ $ adb pull /storage/emulated/legacy/Download/trace.json # After tracing.
Primiano Tucci (use gerrit) 2016/02/11 12:04:55 I think that this should be aliased also via /sdca
petrcermak 2016/02/11 12:20:49 Done (I wanted to mirror https://www.chromium.org/
+
This will use the default configuration: one memory dump every 250 ms with a
detailed dump ever two seconds.
@@ -37,6 +50,25 @@ 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_chrome_public_command_line --no-sandbox
Primiano Tucci (use gerrit) 2016/02/11 12:04:55 no need of --no-sandbox
petrcermak 2016/02/11 12:20:49 Done.
+
+ $ build/android/adb_run_chrome_public # Public.
+ $ clank/bin/adb_run_chrome # Googlers only.
Primiano Tucci (use gerrit) 2016/02/11 12:04:55 ditto
petrcermak 2016/02/11 12:20:49 Done (ditto).
+
+ $ adb pull /storage/emulated/legacy/Download/trace.json # After tracing.
+
+Make sure that the "result_file" location is writable by the Chrome process on
+Android (e.g. "/storage/emulated/legacy/Download/trace.json"). Note that startup
Primiano Tucci (use gerrit) 2016/02/11 12:04:55 /sdcard
petrcermak 2016/02/11 12:20:49 Done.
+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