projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2f2bacc
)
track deps log load time in metrics
author
Evan Martin
<martine@danga.com>
Sun, 30 Dec 2012 20:50:43 +0000
(12:50 -0800)
committer
Evan Martin
<martine@danga.com>
Mon, 8 Apr 2013 21:45:07 +0000
(14:45 -0700)
src/deps_log.cc
patch
|
blob
|
history
diff --git
a/src/deps_log.cc
b/src/deps_log.cc
index
5732b6d
..
de25f7b
100644
(file)
--- a/
src/deps_log.cc
+++ b/
src/deps_log.cc
@@
-20,6
+20,7
@@
#include <string.h>
#include "graph.h"
#include <string.h>
#include "graph.h"
+#include "metrics.h"
#include "state.h"
#include "util.h"
#include "state.h"
#include "util.h"
@@
-80,6
+81,7
@@
void DepsLog::Close() {
}
bool DepsLog::Load(const string& path, State* state, string* err) {
}
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) {
char buf[32 << 10];
FILE* f = fopen(path.c_str(), "rb");
if (!f) {