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

Unified Diff: third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-flame-chart-overview.html

Issue 2279513002: DevTools: make hitCount optional & experimental in Profiler domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/trace-event-self-time.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-flame-chart-overview.html
diff --git a/third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-flame-chart-overview.html b/third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-flame-chart-overview.html
index d47098bdf86a4c39cc5123db8f6d52ab149ee6e7..be6c3651c78ed60d178e4c75495b61a71baa9994 100644
--- a/third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-flame-chart-overview.html
+++ b/third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-flame-chart-overview.html
@@ -932,7 +932,7 @@ function test()
profile.startTime *= 1000;
profile.endTime *= 1000;
var samplingInterval = (profile.endTime - profile.startTime) / (profile.samples.length - 1);
- profile.timestampDeltas = Array.from(new Array(profile.samples.length), (x, i) => i ? samplingInterval : 0);
+ profile.timeDeltas = [0, ...new Array(profile.samples.length - 1).fill(samplingInterval)];
profileAndExpectations.target = () => {};
profileAndExpectations.weakTarget = () => new WeakReference(null);
var cpuProfileView = new WebInspector.CPUProfileView(profileAndExpectations);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/trace-event-self-time.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698