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

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

Issue 1310343007: DevTools: fix 'Failed to write into a temp file' when recording a filmstrip (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « Source/devtools/front_end/network/NetworkPanel.js ('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 */
11 WebInspector.TracingModel = function(backingStorage) 11 WebInspector.TracingModel = function(backingStorage)
12 { 12 {
13 this.reset();
14 // Set backing storage after reset so that we do not perform
15 // an extra reset of backing storage -- this is not free.
13 this._backingStorage = backingStorage; 16 this._backingStorage = backingStorage;
14 this.reset();
15 } 17 }
16 18
17 /** 19 /**
18 * @enum {string} 20 * @enum {string}
19 */ 21 */
20 WebInspector.TracingModel.Phase = { 22 WebInspector.TracingModel.Phase = {
21 Begin: "B", 23 Begin: "B",
22 End: "E", 24 End: "E",
23 Complete: "X", 25 Complete: "X",
24 Instant: "I", 26 Instant: "I",
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 }, 185 },
184 186
185 reset: function() 187 reset: function()
186 { 188 {
187 /** @type {!Object.<(number|string), !WebInspector.TracingModel.Process> } */ 189 /** @type {!Object.<(number|string), !WebInspector.TracingModel.Process> } */
188 this._processById = {}; 190 this._processById = {};
189 this._processByName = new Map(); 191 this._processByName = new Map();
190 this._minimumRecordTime = 0; 192 this._minimumRecordTime = 0;
191 this._maximumRecordTime = 0; 193 this._maximumRecordTime = 0;
192 this._devToolsMetadataEvents = []; 194 this._devToolsMetadataEvents = [];
193 this._backingStorage.reset(); 195 if (this._backingStorage)
196 this._backingStorage.reset();
194 this._appendDelimiter = false; 197 this._appendDelimiter = false;
195 /** @type {!Array<!WebInspector.TracingModel.Event>} */ 198 /** @type {!Array<!WebInspector.TracingModel.Event>} */
196 this._asyncEvents = []; 199 this._asyncEvents = [];
197 /** @type {!Map<string, !WebInspector.TracingModel.AsyncEvent>} */ 200 /** @type {!Map<string, !WebInspector.TracingModel.AsyncEvent>} */
198 this._openAsyncEvents = new Map(); 201 this._openAsyncEvents = new Map();
199 /** @type {!Map<string, !Array<!WebInspector.TracingModel.AsyncEvent>>} */ 202 /** @type {!Map<string, !Array<!WebInspector.TracingModel.AsyncEvent>>} */
200 this._openNestableAsyncEvents = new Map(); 203 this._openNestableAsyncEvents = new Map();
201 /** @type {!Map<string, !Set<string>>} */ 204 /** @type {!Map<string, !Set<string>>} */
202 this._parsedCategories = new Map(); 205 this._parsedCategories = new Map();
203 }, 206 },
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 /** 921 /**
919 * @return {!Array.<!WebInspector.TracingModel.AsyncEvent>} 922 * @return {!Array.<!WebInspector.TracingModel.AsyncEvent>}
920 */ 923 */
921 asyncEvents: function() 924 asyncEvents: function()
922 { 925 {
923 return this._asyncEvents; 926 return this._asyncEvents;
924 }, 927 },
925 928
926 __proto__: WebInspector.TracingModel.NamedObject.prototype 929 __proto__: WebInspector.TracingModel.NamedObject.prototype
927 } 930 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/network/NetworkPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698