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

Unified Diff: tracing/tracing/ui/extras/about_tracing/inspector_tracing_controller_client.html

Issue 2933193002: [WIP] Fix periodic dumping for memory-infra on Android. (Closed)
Patch Set: Created 3 years, 6 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
Index: tracing/tracing/ui/extras/about_tracing/inspector_tracing_controller_client.html
diff --git a/tracing/tracing/ui/extras/about_tracing/inspector_tracing_controller_client.html b/tracing/tracing/ui/extras/about_tracing/inspector_tracing_controller_client.html
index 0971bb93c1395a7f0d40c2a79229bfe811119706..ac183974ad10d0683ee5cce3cef2e8d13eb55e52 100644
--- a/tracing/tracing/ui/extras/about_tracing/inspector_tracing_controller_client.html
+++ b/tracing/tracing/ui/extras/about_tracing/inspector_tracing_controller_client.html
@@ -91,14 +91,22 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
throw new Error('Already recording');
}
this.recording_ = 'starting';
+ var memory_config = { triggers: [] };
+ if (recordingOptions.includedCategories.indexOf('disabled-by-default-memory-infra') !== -1) {
+ memory_config.triggers.push(
+ {'mode': 'detailed', 'periodic_interval_ms': 10000});
+ }
+ var trace_config_str = {
+ includedCategories: recordingOptions.includedCategories,
+ excludedCategories: recordingOptions.excludedCategories,
+ memoryDumpConfig: memory_config,
+ recordMode: "record-until-full"
+ };
+ alert(recordingOptions.tracingRecordMode);
let res = this.conn_.req(
'Tracing.start',
{
- categories: recordingOptions.categoryFilter,
- options:
- [recordingOptions.tracingRecordMode,
- (recordingOptions.useSampling ? 'enable-sampling' : '')
fmeawad 2017/06/14 17:18:36 This was for the old sampling code that was remove
ssid 2017/06/21 18:38:16 Sorry this should be fixed in Eirk's cl.
- ].join(','),
+ traceConfig: trace_config_str,
fmeawad 2017/06/14 17:18:36 Should we be concerned about the string size? give
ssid 2017/06/21 18:38:16 I think it was the same earlier as well. We used t
bufferUsageReportingInterval: 1000
});
res = res.then(

Powered by Google App Engine
This is Rietveld 408576698