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:
4d1674f
)
Add .ninja_log load time to metrics.
author
Nico Weber
<nicolasweber@gmx.de>
Tue, 1 May 2012 15:42:35 +0000
(08:42 -0700)
committer
Nico Weber
<nicolasweber@gmx.de>
Tue, 1 May 2012 15:42:35 +0000
(08:42 -0700)
On my system, it takes 22% of the empty build time for chrome.
src/build_log.cc
patch
|
blob
|
history
diff --git
a/src/build_log.cc
b/src/build_log.cc
index
0cecd70
..
4ad005f
100644
(file)
--- a/
src/build_log.cc
+++ b/
src/build_log.cc
@@
-21,6
+21,7
@@
#include "build.h"
#include "graph.h"
+#include "metrics.h"
#include "util.h"
// Implementation details:
@@
-104,6
+105,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)