Permalink
Browse files

build metrics: StartEdge and EndEdge

Total build time is also relevant.
The costs of StartEdge and EndEdge turned out to be quite surprising.
Especially if multiple targets are specified on edges.
 (I've tried declaring depfiles targets explicitly)
  • Loading branch information...
1 parent 6b1d5c2 commit c4fc36cfd64fc7ee8b79efcef4d6106dca675b97 Maxim Kalaev committed Oct 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/build.cc
View
@@ -728,6 +728,7 @@ bool Builder::Build(string* err) {
}
bool Builder::StartEdge(Edge* edge, string* err) {
+ METRIC_RECORD("StartEdge");
if (edge->is_phony())
return true;
@@ -758,6 +759,7 @@ bool Builder::StartEdge(Edge* edge, string* err) {
}
void Builder::FinishEdge(Edge* edge, bool success, const string& output) {
+ METRIC_RECORD("FinishEdge");
TimeStamp restat_mtime = 0;
if (success) {

0 comments on commit c4fc36c

Please sign in to comment.