summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--HACKING3
-rw-r--r--src/parser_perftest.cc4
2 files changed, 5 insertions, 2 deletions
diff --git a/HACKING b/HACKING
index c8c0af4..92cdf68 100644
--- a/HACKING
+++ b/HACKING
@@ -18,6 +18,9 @@ Testing performance impact of changes:
(for i in `seq 5`; do time -p ninja-new chrome) 2>&1 | grep real > new
and then compare those two lists of timings either by eye or with R.
+ For changing the depfile parser, you can also build 'parser_perftest'
+ and run that directly on some representative input files.
+
Coding guidelines:
- Function name are camelcase.
- Member methods are camelcase, expect for trivial getters which are
diff --git a/src/parser_perftest.cc b/src/parser_perftest.cc
index 7a5fd82..b5fcd71 100644
--- a/src/parser_perftest.cc
+++ b/src/parser_perftest.cc
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include "parsers.h"
+#include "depfile_parser.h"
#include "util.h"
int main(int argc, char* argv[]) {
@@ -38,7 +38,7 @@ int main(int argc, char* argv[]) {
return 1;
}
- MakefileParser parser;
+ DepfileParser parser;
if (!parser.Parse(buf, &err)) {
printf("%s: %s\n", filename, err.c_str());
return 1;