Commit 2322b9a8 authored by Maya Lekova's avatar Maya Lekova Committed by Commit Bot

[turbofan] Fix computation for V8.TurboFanOptimizeTotalForeground

Fixing the computation of the foreground time after original CL:
https://chromium-review.googlesource.com/c/v8/v8/+/1547864/

Bug: v8:7790, v8:9074
Change-Id: Ic6af4f17aa6e30f9810bd36b0e9f7151ccb57538
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1559737
Commit-Queue: Maya Lekova <mslekova@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60697}
parent 10663921
......@@ -301,7 +301,7 @@ void OptimizedCompilationJob::RecordCompilationStats(CompilationMode mode,
// Compute foreground / background time.
base::TimeDelta time_background;
base::TimeDelta time_foreground =
time_taken_to_prepare_ + time_taken_to_execute_;
time_taken_to_prepare_ + time_taken_to_finalize_;
switch (mode) {
case OptimizedCompilationJob::kConcurrent:
time_background += time_taken_to_execute_;
......
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