| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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; |
| OLD | NEW |