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

Side by Side Diff: Source/devtools/front_end/sdk/TracingManager.js

Issue 717243002: Timeline: do not imply event.thread.target is the main target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: avoid keep stale model in TimelineFrameModel Created 6 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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * @constructor 8 * @constructor
9 * @extends {WebInspector.Object} 9 * @extends {WebInspector.Object}
10 * @implements {WebInspector.TargetManager.Observer} 10 * @implements {WebInspector.TargetManager.Observer}
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 * @param {!WebInspector.Target} target 55 * @param {!WebInspector.Target} target
56 */ 56 */
57 targetRemoved: function(target) 57 targetRemoved: function(target)
58 { 58 {
59 if (this._target !== target) 59 if (this._target !== target)
60 return; 60 return;
61 delete this._target; 61 delete this._target;
62 }, 62 },
63 63
64 /** 64 /**
65 * @return {?WebInspector.Target}
66 */
67 target: function()
68 {
69 return this._target;
70 },
71
72 /**
65 * @param {number} usage 73 * @param {number} usage
66 */ 74 */
67 _bufferUsage: function(usage) 75 _bufferUsage: function(usage)
68 { 76 {
69 this.dispatchEventToListeners(WebInspector.TracingManager.Events.BufferU sage, usage); 77 this.dispatchEventToListeners(WebInspector.TracingManager.Events.BufferU sage, usage);
70 }, 78 },
71 79
72 /** 80 /**
73 * @param {!Array.<!WebInspector.TracingManager.EventPayload>} events 81 * @param {!Array.<!WebInspector.TracingManager.EventPayload>} events
74 */ 82 */
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 dataCollected: function(data) 150 dataCollected: function(data)
143 { 151 {
144 this._tracingManager._eventsCollected(data); 152 this._tracingManager._eventsCollected(data);
145 }, 153 },
146 154
147 tracingComplete: function() 155 tracingComplete: function()
148 { 156 {
149 this._tracingManager._tracingComplete(); 157 this._tracingManager._tracingComplete();
150 } 158 }
151 } 159 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698