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

Side by Side Diff: Source/devtools/front_end/TimelineManager.js

Issue 197233006: DevTools: Allow disabling timeline live update as an experiment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/Settings.js ('k') | Source/devtools/front_end/TimelineModel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 /** 50 /**
51 * @return {boolean} 51 * @return {boolean}
52 */ 52 */
53 isStarted: function() 53 isStarted: function()
54 { 54 {
55 return this._dispatcher.isStarted(); 55 return this._dispatcher.isStarted();
56 }, 56 },
57 57
58 /** 58 /**
59 * @param {number=} maxCallStackDepth 59 * @param {number=} maxCallStackDepth
60 * @param {boolean=} bufferEvents
60 * @param {boolean=} includeCounters 61 * @param {boolean=} includeCounters
61 * @param {boolean=} includeGPUEvents 62 * @param {boolean=} includeGPUEvents
62 * @param {function(?Protocol.Error)=} callback 63 * @param {function(?Protocol.Error)=} callback
63 */ 64 */
64 start: function(maxCallStackDepth, includeCounters, includeGPUEvents, callba ck) 65 start: function(maxCallStackDepth, bufferEvents, includeCounters, includeGPU Events, callback)
65 { 66 {
66 this._enablementCount++; 67 this._enablementCount++;
67 if (this._enablementCount === 1) 68 if (this._enablementCount === 1)
68 TimelineAgent.start(maxCallStackDepth, /* bufferEvents */false, incl udeCounters, includeGPUEvents, callback); 69 TimelineAgent.start(maxCallStackDepth, bufferEvents, includeCounters , includeGPUEvents, callback);
69 else if (callback) 70 else if (callback)
70 callback(null); 71 callback(null);
71 }, 72 },
72 73
73 /** 74 /**
74 * @param {function(?Protocol.Error)=} callback 75 * @param {function(?Protocol.Error)=} callback
75 */ 76 */
76 stop: function(callback) 77 stop: function(callback)
77 { 78 {
78 this._enablementCount--; 79 this._enablementCount--;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 { 137 {
137 this._started = false; 138 this._started = false;
138 this._manager.dispatchEventToListeners(WebInspector.TimelineManager.Even tTypes.TimelineStopped, consoleTimeline); 139 this._manager.dispatchEventToListeners(WebInspector.TimelineManager.Even tTypes.TimelineStopped, consoleTimeline);
139 } 140 }
140 } 141 }
141 142
142 /** 143 /**
143 * @type {!WebInspector.TimelineManager} 144 * @type {!WebInspector.TimelineManager}
144 */ 145 */
145 WebInspector.timelineManager; 146 WebInspector.timelineManager;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/Settings.js ('k') | Source/devtools/front_end/TimelineModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698