memory - C++: "Watch" usage of "new", "delete" operators -


i'd track down when , how memory gets allocated in program , print out debugging purposes under circumstances!

  • how can print out message allocated memory amount every time new used allocate memory in program?

an excellent way debug memory problems use external monitor such valgrind. hook memory allocation , deallocation of program, , print out report @ end of program showing allocations didn't deallocate. no modification or recompilation of program necessary method.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -