| 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..97bc178803faa101ee94292a2b3f7be0a09f3681 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
|
| @@ -87,18 +87,27 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
|
| },
|
|
|
| beginRecording(recordingOptions) {
|
| + alert("beginRecording");
|
| if (this.recording_) {
|
| 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' : '')
|
| - ].join(','),
|
| + traceConfig: trace_config_str,
|
| bufferUsageReportingInterval: 1000
|
| });
|
| res = res.then(
|
|
|