summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2022-05-30 21:04:46 (GMT)
committerDavid 'Digit' Turner <digit+github@google.com>2023-09-25 10:50:22 (GMT)
commitcff9dce3cd2187a7671b05d2437a426ca6e06ca0 (patch)
treea5284840f33cb36c0f6e68d4a574647ca2953ad4
parent7289d5c2561f5789bec9c4f0114b73eb0e7476ee (diff)
downloadNinja-cff9dce3cd2187a7671b05d2437a426ca6e06ca0.zip
Ninja-cff9dce3cd2187a7671b05d2437a426ca6e06ca0.tar.gz
Ninja-cff9dce3cd2187a7671b05d2437a426ca6e06ca0.tar.bz2
Don't double-count the 'node stat' metric.
This is already done in RealDiskInterface::Stat() itself, and removes a confusing duplicate line in `-d stats` output, e.g.: BEFORE: metric count avg (us) total (ms) ... node stat 119145 3.0 355.2 node stat 270673 3.1 834.9 AFTER: metric count avg (us) total (ms) ... node stat 270673 2.9 774.0
-rw-r--r--src/graph.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/graph.cc b/src/graph.cc
index 199294d..ad7031f 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -32,7 +32,6 @@
using namespace std;
bool Node::Stat(DiskInterface* disk_interface, string* err) {
- METRIC_RECORD("node stat");
mtime_ = disk_interface->Stat(path_, err);
if (mtime_ == -1) {
return false;