OLD | NEW |
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 * @implements {WebInspector.TimelineModeView} | 9 * @implements {WebInspector.TimelineModeView} |
10 * @implements {WebInspector.FlameChartDelegate} | 10 * @implements {WebInspector.FlameChartDelegate} |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 pid: 0, | 222 pid: 0, |
223 tid: 0, | 223 tid: 0, |
224 ts: 0, | 224 ts: 0, |
225 ph: "dummy", | 225 ph: "dummy", |
226 name: "dummy", | 226 name: "dummy", |
227 args: {}, | 227 args: {}, |
228 dur: 0, | 228 dur: 0, |
229 id: 0, | 229 id: 0, |
230 s: "" | 230 s: "" |
231 } | 231 } |
232 this._processHeaderRecord = new WebInspector.TracingModel.Event(dummyEventPa
yload, 0); | 232 this._processHeaderRecord = new WebInspector.TracingModel.Event(dummyEventPa
yload, 0, null); |
233 this._threadHeaderRecord = new WebInspector.TracingModel.Event(dummyEventPay
load, 0); | 233 this._threadHeaderRecord = new WebInspector.TracingModel.Event(dummyEventPay
load, 0, null); |
234 } | 234 } |
235 | 235 |
236 WebInspector.TraceViewFlameChartDataProvider.prototype = { | 236 WebInspector.TraceViewFlameChartDataProvider.prototype = { |
237 /** | 237 /** |
238 * @return {number} | 238 * @return {number} |
239 */ | 239 */ |
240 barHeight: function() | 240 barHeight: function() |
241 { | 241 { |
242 return 20; | 242 return 20; |
243 }, | 243 }, |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 /** | 582 /** |
583 * @param {string} string | 583 * @param {string} string |
584 * @return {string} | 584 * @return {string} |
585 */ | 585 */ |
586 colorForString: function(string) | 586 colorForString: function(string) |
587 { | 587 { |
588 var hash = WebInspector.TraceViewPalette._stringHash(string); | 588 var hash = WebInspector.TraceViewPalette._stringHash(string); |
589 return this._palette[hash % this._palette.length]; | 589 return this._palette[hash % this._palette.length]; |
590 } | 590 } |
591 }; | 591 }; |
OLD | NEW |