¡@

Home 

c++ Programming Glossary: in_use

Critique my non-intrusive heap debugger

http://stackoverflow.com/questions/2835416/critique-my-non-intrusive-heap-debugger

byte address size_t size kind_of_memory kind bool in_use const return kind 2 void print const printf s at p d bytes.. void address return kind TOMBSTONE in_use address this address bool canaries_alive const bool alive.. void print const for size_t i 0 i capacity i if data i .in_use printf leaked data i .print hashtable used 0 capacity..

Quick and dirty way to profile your code

http://stackoverflow.com/questions/61278/quick-and-dirty-way-to-profile-your-code

ret static_cast double freq.QuadPart return ret bool in_use public time_collector const TCHAR n times 0 name n total.. TCHAR n times 0 name n total 0 start LARGE_INTEGER in_use false ~time_collector std basic_ostringstream TCHAR msg msg.. .c_str void add_time __int64 ticks total ticks times in_use false bool aquire if in_use return false in_use true return..