[turbofan] Add a PhaseScope for initialization.
authortitzer <titzer@chromium.org>
Mon, 1 Dec 2014 16:15:36 +0000 (08:15 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 1 Dec 2014 16:15:49 +0000 (16:15 +0000)
R=dcarney@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#25587}

src/compiler/pipeline.cc

index b5185b8..281c999 100644 (file)
@@ -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<Code> Pipeline::GenerateCode() {
 
   if (FLAG_turbo_stats) {
     pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool));
+    pipeline_statistics->BeginPhaseKind("initializing");
   }
 
   PipelineData data(&zone_pool, info());