diff options
Diffstat (limited to 'cpp/042new.cc')
-rw-r--r-- | cpp/042new.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/042new.cc b/cpp/042new.cc index 9c88f11b..c7a5cc11 100644 --- a/cpp/042new.cc +++ b/cpp/042new.cc @@ -17,11 +17,13 @@ size_t Initial_memory_per_routine = 100000; Memory_allocated_until = 1000; Initial_memory_per_routine = 100000; :(before "End routine Fields") -size_t alloc; +size_t alloc, alloc_max; :(replace{} "routine::routine(recipe_number r)") routine::routine(recipe_number r) :alloc(Memory_allocated_until) { alloc = Memory_allocated_until; Memory_allocated_until += Initial_memory_per_routine; + alloc_max = Memory_allocated_until; + trace("new") << "routine allocated memory from " << alloc << " to " << alloc_max; calls.push(call(r)); } |