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

Side by Side Diff: Source/devtools/front_end/timeline/TimelineFlameChart.js

Issue 721703002: DevTools: instant events should not overlap on Timeline flame chart when zooming in (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/FlameChart.js » ('j') | 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 (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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/FlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698