Extending toolset with stack_count.[ch] and MemProfile for run-time heap usage profiling.