Commit c87740ec authored by yurys@chromium.org's avatar yurys@chromium.org

DevTools: instant events should not overlap on Timeline flame chart when zooming in

Instant events are now considered as having duration 1us rather than 10us which makes overlapping much less likely.

BUG=398783

Review URL: https://codereview.chromium.org/721703002

git-svn-id: svn://svn.chromium.org/blink/trunk@185217 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 364da311
......@@ -47,7 +47,7 @@ WebInspector.TimelineFlameChartDataProvider = function(model, frameModel)
this.addFilter(new WebInspector.ExclusiveTraceEventNameFilter([WebInspector.TimelineModel.RecordType.Program]));
}
WebInspector.TimelineFlameChartDataProvider.InstantEventVisibleDurationMs = 0.01;
WebInspector.TimelineFlameChartDataProvider.InstantEventVisibleDurationMs = 0.001;
WebInspector.TimelineFlameChartDataProvider.JSFrameCoalesceThresholdMs = 1.1;
/**
......
......@@ -93,7 +93,7 @@ WebInspector.FlameChart = function(dataProvider, flameChartDelegate, isTopDown)
this._timeWindowRight = Infinity;
this._barHeight = dataProvider.barHeight();
this._barHeightDelta = this._isTopDown ? -this._barHeight : this._barHeight;
this._minWidth = 1;
this._minWidth = 2;
this._paddingLeft = this._dataProvider.paddingLeft();
this._markerPadding = 2;
this._markerRadius = this._barHeight / 2 - this._markerPadding;
......@@ -908,9 +908,9 @@ WebInspector.FlameChart.prototype = {
var entryStartTimes = timelineData.entryStartTimes;
var entryLevels = timelineData.entryLevels;
var titleIndices = new Uint32Array(timelineData.entryTotalTimes);
var titleIndices = new Uint32Array(entryTotalTimes.length);
var nextTitleIndex = 0;
var markerIndices = new Uint32Array(timelineData.entryTotalTimes);
var markerIndices = new Uint32Array(entryTotalTimes.length);
var nextMarkerIndex = 0;
var textPadding = this._dataProvider.textPadding();
this._minTextWidth = 2 * textPadding + this._measureWidth(context, "\u2026");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment