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

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

Issue 1601523007: [Docs] Move startup tracing docs into repository (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@docs-gpu
Patch Set: Port “Adding MemoryInfra Tracing HowTo” Created 4 years, 11 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 | « components/tracing/docs/memory_infra.md ('k') | 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
new file mode 100644
index 0000000000000000000000000000000000000000..02ac7ad132c529ff8890bbfbb30b0b7eb3379816
--- /dev/null
+++ b/components/tracing/docs/memory_infra_startup_tracing.md
@@ -0,0 +1,43 @@
+# Startup Tracing with MemoryInfra
+
+[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
+
+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
+
+## 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.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698