diff options
author | Evan Martin <martine@danga.com> | 2011-01-08 23:15:44 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-01-08 23:15:44 (GMT) |
commit | 3e1cbd603bb749d75354615af60a29ede5cdfff3 (patch) | |
tree | ba631335d473ce15e79c7c7bb793642a2f8d2152 /src | |
parent | 8eb566fee272831e992ad3028be2572bcfccf74a (diff) | |
download | Ninja-3e1cbd603bb749d75354615af60a29ede5cdfff3.zip Ninja-3e1cbd603bb749d75354615af60a29ede5cdfff3.tar.gz Ninja-3e1cbd603bb749d75354615af60a29ede5cdfff3.tar.bz2 |
don't track timing for phony edges
Diffstat (limited to 'src')
-rw-r--r-- | src/build.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/build.cc b/src/build.cc index bf897a3..2eb08cb 100644 --- a/src/build.cc +++ b/src/build.cc @@ -32,13 +32,13 @@ void BuildStatus::PlanHasTotalEdges(int total) { } void BuildStatus::BuildEdgeStarted(Edge* edge) { + if (edge->rule_ == &State::kPhonyRule) + return; + timeval now; gettimeofday(&now, NULL); running_edges_.insert(make_pair(edge, now)); - if (edge->rule_ == &State::kPhonyRule) - return; - string desc = edge->GetDescription(); if (verbosity_ != BuildConfig::QUIET) { if (verbosity_ != BuildConfig::VERBOSE && !desc.empty()) @@ -49,6 +49,9 @@ void BuildStatus::BuildEdgeStarted(Edge* edge) { } void BuildStatus::BuildEdgeFinished(Edge* edge) { + if (edge->rule_ == &State::kPhonyRule) + return; + timeval now; gettimeofday(&now, NULL); ++finished_edges_; |