OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 29 matching lines...) Expand all Loading... |
40 this.reset(); | 40 this.reset(); |
41 this._model = model; | 41 this._model = model; |
42 this._frameModel = frameModel; | 42 this._frameModel = frameModel; |
43 this._font = "12px " + WebInspector.fontFamily(); | 43 this._font = "12px " + WebInspector.fontFamily(); |
44 this._linkifier = new WebInspector.Linkifier(); | 44 this._linkifier = new WebInspector.Linkifier(); |
45 this._filters = []; | 45 this._filters = []; |
46 this.addFilter(WebInspector.TimelineUIUtils.hiddenEventsFilter()); | 46 this.addFilter(WebInspector.TimelineUIUtils.hiddenEventsFilter()); |
47 this.addFilter(new WebInspector.ExclusiveTraceEventNameFilter([WebInspector.
TimelineModel.RecordType.Program])); | 47 this.addFilter(new WebInspector.ExclusiveTraceEventNameFilter([WebInspector.
TimelineModel.RecordType.Program])); |
48 } | 48 } |
49 | 49 |
50 WebInspector.TimelineFlameChartDataProvider.InstantEventVisibleDurationMs = 0.01
; | 50 WebInspector.TimelineFlameChartDataProvider.InstantEventVisibleDurationMs = 0.00
1; |
51 WebInspector.TimelineFlameChartDataProvider.JSFrameCoalesceThresholdMs = 1.1; | 51 WebInspector.TimelineFlameChartDataProvider.JSFrameCoalesceThresholdMs = 1.1; |
52 | 52 |
53 /** | 53 /** |
54 * @return {!WebInspector.FlameChart.ColorGenerator} | 54 * @return {!WebInspector.FlameChart.ColorGenerator} |
55 */ | 55 */ |
56 WebInspector.TimelineFlameChartDataProvider.consoleEventsColorGenerator = functi
on() | 56 WebInspector.TimelineFlameChartDataProvider.consoleEventsColorGenerator = functi
on() |
57 { | 57 { |
58 if (!WebInspector.TimelineFlameChartDataProvider.consoleEventsColorGenerator
._consoleEventsColorGenerator) { | 58 if (!WebInspector.TimelineFlameChartDataProvider.consoleEventsColorGenerator
._consoleEventsColorGenerator) { |
59 var hueSpace = { min: 30, max: 55, count: 5 }; | 59 var hueSpace = { min: 30, max: 55, count: 5 }; |
60 var satSpace = { min: 70, max: 100, count: 6 }; | 60 var satSpace = { min: 70, max: 100, count: 6 }; |
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 /** | 788 /** |
789 * @constructor | 789 * @constructor |
790 * @param {!WebInspector.TimelineSelection} selection | 790 * @param {!WebInspector.TimelineSelection} selection |
791 * @param {number} entryIndex | 791 * @param {number} entryIndex |
792 */ | 792 */ |
793 WebInspector.TimelineFlameChart.Selection = function(selection, entryIndex) | 793 WebInspector.TimelineFlameChart.Selection = function(selection, entryIndex) |
794 { | 794 { |
795 this.timelineSelection = selection; | 795 this.timelineSelection = selection; |
796 this.entryIndex = entryIndex; | 796 this.entryIndex = entryIndex; |
797 } | 797 } |
OLD | NEW |