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

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

Issue 46663010: DevTools: Show GPU utilization bar on timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tune PID to hue magic const Created 7 years, 1 month 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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=} includeDomCounters 60 * @param {boolean=} includeDomCounters
61 * @param {boolean=} includeGPUEvents
61 * @param {function(?Protocol.Error)=} callback 62 * @param {function(?Protocol.Error)=} callback
62 */ 63 */
63 start: function(maxCallStackDepth, includeDomCounters, callback) 64 start: function(maxCallStackDepth, includeDomCounters, includeGPUEvents, cal lback)
64 { 65 {
65 this._enablementCount++; 66 this._enablementCount++;
66 if (this._enablementCount === 1) 67 if (this._enablementCount === 1)
67 TimelineAgent.start(maxCallStackDepth, /* bufferEvents */false, incl udeDomCounters, callback); 68 TimelineAgent.start(maxCallStackDepth, /* bufferEvents */false, incl udeDomCounters, includeGPUEvents, callback);
68 else if (callback) 69 else if (callback)
69 callback(null); 70 callback(null);
70 }, 71 },
71 72
72 /** 73 /**
73 * @param {function(?Protocol.Error)=} callback 74 * @param {function(?Protocol.Error)=} callback
74 */ 75 */
75 stop: function(callback) 76 stop: function(callback)
76 { 77 {
77 this._enablementCount--; 78 this._enablementCount--;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 { 136 {
136 this._started = false; 137 this._started = false;
137 this._manager.dispatchEventToListeners(WebInspector.TimelineManager.Even tTypes.TimelineStopped, consoleTimeline); 138 this._manager.dispatchEventToListeners(WebInspector.TimelineManager.Even tTypes.TimelineStopped, consoleTimeline);
138 } 139 }
139 } 140 }
140 141
141 /** 142 /**
142 * @type {WebInspector.TimelineManager} 143 * @type {WebInspector.TimelineManager}
143 */ 144 */
144 WebInspector.timelineManager; 145 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