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

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

Issue 2494063002: Move memory docs to docs/memory-infra (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « components/tracing/docs/memory_infra_gpu.md ('k') | docs/memory-infra/README.md » ('j') | 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 138be30933cede10ce60591f430494cda14c74cf..738810f1fcbe2e535da5e246034e6309f8194083 100644
--- a/components/tracing/docs/memory_infra_startup_tracing.md
+++ b/components/tracing/docs/memory_infra_startup_tracing.md
@@ -1,74 +1,2 @@
-# Startup Tracing with MemoryInfra
+This document has moved to [//docs/memory-infra/memory_infra_startup_tracing.md](/docs/memory-infra/memory_infra_startup_tracing.md).
-[MemoryInfra](memory_infra.md) supports startup tracing.
-
-## The Simple Way
-
-Start Chrome as follows:
-
- $ chrome --no-sandbox \
- --trace-startup=-*,disabled-by-default-memory-infra \
- --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
-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.
-
-## The Advanced Way
-
-If you need more control over the granularity of the memory dumps, you can
-specify a custom trace config file as follows:
-
- $ cat > /tmp/trace.config
- {
- "startup_duration": 4,
- "result_file": "/tmp/trace.json",
- "trace_config": {
- "included_categories": ["disabled-by-default-memory-infra"],
- "excluded_categories": ["*"],
- "memory_dump_config": {
- "triggers": [
- { "mode": "light", "periodic_interval_ms": 50 },
- { "mode": "detailed", "periodic_interval_ms": 1000 }
- ]
- }
- }
- }
-
- $ 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)
- * [Memory tracing with MemoryInfra](memory_infra.md)
« no previous file with comments | « components/tracing/docs/memory_infra_gpu.md ('k') | docs/memory-infra/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698