From ba04cddf43bbbfd02d51936506acc9057d16597e Mon Sep 17 00:00:00 2001 From: titzer Date: Mon, 1 Dec 2014 08:15:36 -0800 Subject: [PATCH] [turbofan] Add a PhaseScope for initialization. R=dcarney@chromium.org BUG= Review URL: https://codereview.chromium.org/773443002 Cr-Commit-Position: refs/heads/master@{#25587} --- src/compiler/pipeline.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc index b5185b8..281c999 100644 --- a/src/compiler/pipeline.cc +++ b/src/compiler/pipeline.cc @@ -76,6 +76,7 @@ class PipelineData { // For main entry point. void Initialize(PipelineStatistics* pipeline_statistics) { + PhaseScope scope(pipeline_statistics, "init pipeline data"); outer_zone_ = info()->zone(); pipeline_statistics_ = pipeline_statistics; graph_zone_ = graph_zone_scope_.zone(); @@ -715,6 +716,7 @@ Handle Pipeline::GenerateCode() { if (FLAG_turbo_stats) { pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool)); + pipeline_statistics->BeginPhaseKind("initializing"); } PipelineData data(&zone_pool, info()); -- 2.7.4