track deps log load time in metrics
authorEvan Martin <martine@danga.com>
Sun, 30 Dec 2012 20:50:43 +0000 (12:50 -0800)
committerEvan Martin <martine@danga.com>
Mon, 8 Apr 2013 21:45:07 +0000 (14:45 -0700)
src/deps_log.cc

index 5732b6d..de25f7b 100644 (file)
@@ -20,6 +20,7 @@
 #include <string.h>
 
 #include "graph.h"
+#include "metrics.h"
 #include "state.h"
 #include "util.h"
 
@@ -80,6 +81,7 @@ void DepsLog::Close() {
 }
 
 bool DepsLog::Load(const string& path, State* state, string* err) {
+  METRIC_RECORD(".ninja_deps load");
   char buf[32 << 10];
   FILE* f = fopen(path.c_str(), "rb");
   if (!f) {