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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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; |
OLD | NEW |