summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-12-30 20:50:43 (GMT)
committerEvan Martin <martine@danga.com>2013-04-08 21:45:07 (GMT)
commitc683ca7d0d9281ef8fc7cb2c4ec022ebc861b745 (patch)
tree17ceb19645391f4e9e8f6a10db58438e77805896
parent2f2bacc39ee47b648d6b0aea4c60cb64c41393df (diff)
downloadNinja-c683ca7d0d9281ef8fc7cb2c4ec022ebc861b745.zip
Ninja-c683ca7d0d9281ef8fc7cb2c4ec022ebc861b745.tar.gz
Ninja-c683ca7d0d9281ef8fc7cb2c4ec022ebc861b745.tar.bz2
track deps log load time in metrics
-rw-r--r--src/deps_log.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/deps_log.cc b/src/deps_log.cc
index 5732b6d..de25f7b 100644
--- a/src/deps_log.cc
+++ b/src/deps_log.cc
@@ -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) {