Permalink
Browse files

Add metric for log recompacting

  • Loading branch information...
1 parent 44f2cb6 commit a8fb6423dfcf9279817639502936b687d95ea8f8 @PetrWolf PetrWolf committed Oct 4, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/build_log.cc
View
@@ -341,6 +341,7 @@ void BuildLog::WriteEntry(FILE* f, const LogEntry& entry) {
}
bool BuildLog::Recompact(const string& path, string* err) {
+ METRIC_RECORD(".ninja_log recompact");
printf("Recompacting log...\n");
string temp_path = path + ".recompact";

0 comments on commit a8fb642

Please sign in to comment.