X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=HeapProfiler.cpp;h=348fee6b13879435063b59cb2b49fed420a211ab;hb=b14313eff81b64586da652b222540f4705796616;hp=d3c46f805256d7e048cce7ccfb0536e7f88b2c8d;hpb=eb04a05de55af8957aea1353d21b5e5b98bd1006;p=SXSI%2FTextCollection.git diff --git a/HeapProfiler.cpp b/HeapProfiler.cpp index d3c46f8..348fee6 100644 --- a/HeapProfiler.cpp +++ b/HeapProfiler.cpp @@ -37,6 +37,9 @@ void *(*HeapProfiler::old_realloc_hook)(void *, size_t, const void *); unsigned long HeapProfiler::GetMaxHeapConsumption() { return maxConsumption; } +void HeapProfiler::ResetMaxHeapConsumption() { + maxConsumption = 0; +} unsigned long HeapProfiler::GetHeapConsumption() { return consumption;