summaryrefslogtreecommitdiffstats
path: root/src/state.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-12-17 17:08:15 (GMT)
committerEvan Martin <martine@danga.com>2013-04-08 21:45:06 (GMT)
commitb6a9a1c8adbb444c2489d884f06e5bd39627c3e9 (patch)
tree61a7e8e06a57e1ef054a48e6febe061ac51635a5 /src/state.cc
parent9f1852fa3c97197e1876f1d47ca45e66b5e6cd28 (diff)
downloadNinja-b6a9a1c8adbb444c2489d884f06e5bd39627c3e9.zip
Ninja-b6a9a1c8adbb444c2489d884f06e5bd39627c3e9.tar.gz
Ninja-b6a9a1c8adbb444c2489d884f06e5bd39627c3e9.tar.bz2
add DepsLog, a new data structure for dependency information
DepsLog is a compact serialization of dependency information. It can be used to replace depfiles for faster loading.
Diffstat (limited to 'src/state.cc')
-rw-r--r--src/state.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/state.cc b/src/state.cc
index 9f46fee..d2d5ebe 100644
--- a/src/state.cc
+++ b/src/state.cc
@@ -202,10 +202,11 @@ void State::Reset() {
void State::Dump() {
for (Paths::iterator i = paths_.begin(); i != paths_.end(); ++i) {
Node* node = i->second;
- printf("%s %s\n",
+ printf("%s %s [id:%d]\n",
node->path().c_str(),
node->status_known() ? (node->dirty() ? "dirty" : "clean")
- : "unknown");
+ : "unknown",
+ node->id());
}
if (!pools_.empty()) {
printf("resource_pools:\n");