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

Side by Side Diff: tracing/tracing/ui/extras/about_tracing/record_controller.html

Issue 2948023002: Fix periodic dumping for memory-infra on Android. (Closed)
Patch Set: fix tests. 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/ui/extras/about_tracing/record_selection_dialo g.html"> 8 <link rel="import" href="/tracing/ui/extras/about_tracing/record_selection_dialo g.html">
9 9
10 <script> 10 <script>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 bufferPercentFullDiv = document.createElement('div'); 78 bufferPercentFullDiv = document.createElement('div');
79 Polymer.dom(progressDlg).appendChild(bufferPercentFullDiv); 79 Polymer.dom(progressDlg).appendChild(bufferPercentFullDiv);
80 80
81 const stopButton = document.createElement('button'); 81 const stopButton = document.createElement('button');
82 Polymer.dom(stopButton).textContent = 'Stop'; 82 Polymer.dom(stopButton).textContent = 'Stop';
83 progressDlg.clickStopButton = function() { 83 progressDlg.clickStopButton = function() {
84 stopButton.click(); 84 stopButton.click();
85 }; 85 };
86 Polymer.dom(progressDlg).appendChild(stopButton); 86 Polymer.dom(progressDlg).appendChild(stopButton);
87 87
88 const categories = selectionDlg.includedAndExcludedCategories();
88 const recordingOptions = { 89 const recordingOptions = {
89 categoryFilter: selectionDlg.categoryFilter(), 90 included_categories: categories.included,
90 useSystemTracing: selectionDlg.useSystemTracing, 91 excluded_categories: categories.excluded,
91 tracingRecordMode: selectionDlg.tracingRecordMode, 92 enable_systrace: selectionDlg.useSystemTracing,
92 useSampling: selectionDlg.useSampling 93 record_mode: selectionDlg.tracingRecordMode,
93 }; 94 };
94 95
95
96 const requestPromise = tracingControllerClient.beginRecording( 96 const requestPromise = tracingControllerClient.beginRecording(
97 recordingOptions); 97 recordingOptions);
98 requestPromise.then( 98 requestPromise.then(
99 function() { 99 function() {
100 progressDlg.visible = true; 100 progressDlg.visible = true;
101 stopButton.focus(); 101 stopButton.focus();
102 updateBufferPercentFull('0'); 102 updateBufferPercentFull('0');
103 }, 103 },
104 recordFailed); 104 recordFailed);
105 105
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 __proto__: Error.prototype 171 __proto__: Error.prototype
172 }; 172 };
173 173
174 return { 174 return {
175 beginRecording, 175 beginRecording,
176 UserCancelledError, 176 UserCancelledError,
177 defaultTraceName, 177 defaultTraceName,
178 }; 178 };
179 }); 179 });
180 </script> 180 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698