summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Niklas Hasse <jhasse@bixense.com>2021-08-25 09:09:54 (GMT)
committerGitHub <noreply@github.com>2021-08-25 09:09:54 (GMT)
commitb28bf72deaea77f4ddeb8aafc1505811ed31cb21 (patch)
tree4ce6c4beae03434d0fbbb9b7f8452e1fc28a3962
parentffb47fcf82ed12f53c046f6d51401c34ec35eced (diff)
parent0bc608077c7cf0d4e5fc84ef0e754d80d934ac64 (diff)
downloadNinja-b28bf72deaea77f4ddeb8aafc1505811ed31cb21.zip
Ninja-b28bf72deaea77f4ddeb8aafc1505811ed31cb21.tar.gz
Ninja-b28bf72deaea77f4ddeb8aafc1505811ed31cb21.tar.bz2
Merge pull request #2002 from randomascii/stats_optimize
Optimize ninja -d stats
-rw-r--r--src/state.cc2
-rw-r--r--src/util.cc3
2 files changed, 0 insertions, 5 deletions
diff --git a/src/state.cc b/src/state.cc
index a33d5a8..fc37c8a 100644
--- a/src/state.cc
+++ b/src/state.cc
@@ -19,7 +19,6 @@
#include "edit_distance.h"
#include "graph.h"
-#include "metrics.h"
#include "util.h"
using namespace std;
@@ -104,7 +103,6 @@ Node* State::GetNode(StringPiece path, uint64_t slash_bits) {
}
Node* State::LookupNode(StringPiece path) const {
- METRIC_RECORD("lookup node");
Paths::const_iterator i = paths_.find(path);
if (i != paths_.end())
return i->second;
diff --git a/src/util.cc b/src/util.cc
index 3dfa8dd..080883e 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -56,7 +56,6 @@
#endif
#include "edit_distance.h"
-#include "metrics.h"
using namespace std;
@@ -118,7 +117,6 @@ void Info(const char* msg, ...) {
}
void CanonicalizePath(string* path, uint64_t* slash_bits) {
- METRIC_RECORD("canonicalize str");
size_t len = path->size();
char* str = 0;
if (len > 0)
@@ -138,7 +136,6 @@ static bool IsPathSeparator(char c) {
void CanonicalizePath(char* path, size_t* len, uint64_t* slash_bits) {
// WARNING: this function is performance-critical; please benchmark
// any changes you make to it.
- METRIC_RECORD("canonicalize path");
if (*len == 0) {
return;
}