summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-01-06 18:05:28 (GMT)
committerEvan Martin <martine@danga.com>2012-01-06 20:52:17 (GMT)
commit12bf7b273f0675fae51601cbba2db259030fe173 (patch)
tree26de5921b57287c70964799fe3e584bf9fadbf0c /src
parent36660e473b7f38317a38cc5a297ba18166191cf5 (diff)
downloadNinja-12bf7b273f0675fae51601cbba2db259030fe173.zip
Ninja-12bf7b273f0675fae51601cbba2db259030fe173.tar.gz
Ninja-12bf7b273f0675fae51601cbba2db259030fe173.tar.bz2
track canonicalize metric
Diffstat (limited to 'src')
-rw-r--r--src/util.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc
index f65dcb3..c5712e0 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -38,6 +38,7 @@
#endif
#include "edit_distance.h"
+#include "metrics.h"
void Fatal(const char* msg, ...) {
va_list ap;
@@ -78,6 +79,7 @@ void Error(const char* msg, ...) {
bool CanonicalizePath(string* path, string* err) {
// WARNING: this function is performance-critical; please benchmark
// any changes you make to it.
+ METRIC_RECORD("canonicalize path");
if (path->empty()) {
*err = "empty path";