diff options
author | Evan Martin <martine@danga.com> | 2012-05-02 03:33:41 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-05-02 03:33:41 (GMT) |
commit | d81e416dcb543acbb17e6ff1c877900fe12114e9 (patch) | |
tree | 83e729ff9e9ba0e106e45c2d7e0387e60d92c375 /src/build_log.cc | |
parent | 96b7eb7f23e4b079a8dd0f0b2496890121028eb4 (diff) | |
parent | 71224a9953341368aa03efcf5c4fb557ae809568 (diff) | |
download | Ninja-d81e416dcb543acbb17e6ff1c877900fe12114e9.zip Ninja-d81e416dcb543acbb17e6ff1c877900fe12114e9.tar.gz Ninja-d81e416dcb543acbb17e6ff1c877900fe12114e9.tar.bz2 |
Merge pull request #290 from nico/metrics
Add .ninja_log load time to metrics.
Diffstat (limited to 'src/build_log.cc')
-rw-r--r-- | src/build_log.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/build_log.cc b/src/build_log.cc index f5ba9a2..d30625a 100644 --- a/src/build_log.cc +++ b/src/build_log.cc @@ -24,6 +24,7 @@ #include "build.h" #include "graph.h" +#include "metrics.h" #include "util.h" // Implementation details: @@ -107,6 +108,7 @@ void BuildLog::Close() { } bool BuildLog::Load(const string& path, string* err) { + METRIC_RECORD(".ninja_log load"); FILE* file = fopen(path.c_str(), "r"); if (!file) { if (errno == ENOENT) |