about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--027debug.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/027debug.cc b/027debug.cc
index 1e313d98..bbce5d6e 100644
--- a/027debug.cc
+++ b/027debug.cc
@@ -72,3 +72,13 @@ case _DUMP_TRACE: {
   DUMP("");
   break;
 }
+
+:(before "End Primitive Recipe Declarations")
+_DUMP_MEMORY,
+:(before "End Primitive Recipe Numbers")
+Recipe_number["$dump-memory"] = _DUMP_MEMORY;
+:(before "End Primitive Recipe Implementations")
+case _DUMP_MEMORY: {
+  dump_memory();
+  break;
+}