| 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=} bufferEvents | 60 * @param {boolean=} bufferEvents |
| 61 * @param {string=} liveEvents |
| 61 * @param {boolean=} includeCounters | 62 * @param {boolean=} includeCounters |
| 62 * @param {boolean=} includeGPUEvents | 63 * @param {boolean=} includeGPUEvents |
| 63 * @param {function(?Protocol.Error)=} callback | 64 * @param {function(?Protocol.Error)=} callback |
| 64 */ | 65 */ |
| 65 start: function(maxCallStackDepth, bufferEvents, includeCounters, includeGPU
Events, callback) | 66 start: function(maxCallStackDepth, bufferEvents, liveEvents, includeCounters
, includeGPUEvents, callback) |
| 66 { | 67 { |
| 67 this._enablementCount++; | 68 this._enablementCount++; |
| 68 if (this._enablementCount === 1) | 69 if (this._enablementCount === 1) |
| 69 TimelineAgent.start(maxCallStackDepth, bufferEvents, includeCounters
, includeGPUEvents, callback); | 70 TimelineAgent.start(maxCallStackDepth, bufferEvents, liveEvents, inc
ludeCounters, includeGPUEvents, callback); |
| 70 else if (callback) | 71 else if (callback) |
| 71 callback(null); | 72 callback(null); |
| 72 }, | 73 }, |
| 73 | 74 |
| 74 /** | 75 /** |
| 75 * @param {function(?Protocol.Error)=} callback | 76 * @param {function(?Protocol.Error)=} callback |
| 76 */ | 77 */ |
| 77 stop: function(callback) | 78 stop: function(callback) |
| 78 { | 79 { |
| 79 this._enablementCount--; | 80 this._enablementCount--; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 { | 138 { |
| 138 this._started = false; | 139 this._started = false; |
| 139 this._manager.dispatchEventToListeners(WebInspector.TimelineManager.Even
tTypes.TimelineStopped, consoleTimeline); | 140 this._manager.dispatchEventToListeners(WebInspector.TimelineManager.Even
tTypes.TimelineStopped, consoleTimeline); |
| 140 } | 141 } |
| 141 } | 142 } |
| 142 | 143 |
| 143 /** | 144 /** |
| 144 * @type {!WebInspector.TimelineManager} | 145 * @type {!WebInspector.TimelineManager} |
| 145 */ | 146 */ |
| 146 WebInspector.timelineManager; | 147 WebInspector.timelineManager; |
| OLD | NEW |