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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/TracingModel.js

Issue 2335973002: DevTools: Auto close open sync trace events. (Closed)
Patch Set: Created 4 years, 3 months 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
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-open-function-call-expected.txt ('k') | no next file » | 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 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 * @param {!WebInspector.BackingStorage} backingStorage 9 * @param {!WebInspector.BackingStorage} backingStorage
10 */ 10 */
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 if (top.name !== e.name || top.categoriesString !== e.categories String) 854 if (top.name !== e.name || top.categoriesString !== e.categories String)
855 console.error("B/E events mismatch at " + top.startTime + " (" + top.name + ") vs. " + e.startTime + " (" + e.name + ")"); 855 console.error("B/E events mismatch at " + top.startTime + " (" + top.name + ") vs. " + e.startTime + " (" + e.name + ")");
856 else 856 else
857 top._complete(e); 857 top._complete(e);
858 break; 858 break;
859 case phases.Begin: 859 case phases.Begin:
860 stack.push(e); 860 stack.push(e);
861 break; 861 break;
862 } 862 }
863 } 863 }
864 while (stack.length)
865 stack.pop().setEndTime(this._model.maximumRecordTime());
864 this._events.remove(null, false); 866 this._events.remove(null, false);
865 }, 867 },
866 868
867 /** 869 /**
868 * @param {!WebInspector.TracingManager.EventPayload} payload 870 * @param {!WebInspector.TracingManager.EventPayload} payload
869 * @return {?WebInspector.TracingModel.Event} event 871 * @return {?WebInspector.TracingModel.Event} event
870 */ 872 */
871 _addEvent: function(payload) 873 _addEvent: function(payload)
872 { 874 {
873 var event = payload.ph === WebInspector.TracingModel.Phase.SnapshotObjec t 875 var event = payload.ph === WebInspector.TracingModel.Phase.SnapshotObjec t
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 /** 930 /**
929 * @return {!Array.<!WebInspector.TracingModel.AsyncEvent>} 931 * @return {!Array.<!WebInspector.TracingModel.AsyncEvent>}
930 */ 932 */
931 asyncEvents: function() 933 asyncEvents: function()
932 { 934 {
933 return this._asyncEvents; 935 return this._asyncEvents;
934 }, 936 },
935 937
936 __proto__: WebInspector.TracingModel.NamedObject.prototype 938 __proto__: WebInspector.TracingModel.NamedObject.prototype
937 } 939 }
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-open-function-call-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698