Author: njn
Date: 2007-09-27 08:42:26 +0100 (Thu, 27 Sep 2007)
New Revision: 6921

Log:
Remove an unused var, rename another.

Modified:
   branches/MASSIF2/massif/ms_main.c


Modified: branches/MASSIF2/massif/ms_main.c
===================================================================
--- branches/MASSIF2/massif/ms_main.c   2007-09-27 00:01:21 UTC (rev 6920)
+++ branches/MASSIF2/massif/ms_main.c   2007-09-27 07:42:26 UTC (rev 6921)
@@ -265,10 +265,9 @@
 //------------------------------------------------------------//
 
 // These are signed so things are more obvious if they go negative.
-static SSizeT sigstacks_szB = 0;     // Current signal stacks space sum
-static SSizeT heap_szB      = 0;     // Live heap size
-static SSizeT peak_heap_szB = 0;     // XXX: currently unused
-static SSizeT peak_snapshot_total_szB = 0;
+static SSizeT sigstacks_szB  = 0;     // Current signal stacks space sum
+static SSizeT heap_szB       = 0;     // Live heap size
+static SSizeT peak_total_szB = 0;
 
 // Incremented every time memory is allocated/deallocated, by the
 // allocated/deallocated amount.  An alternative to milliseconds as a unit
@@ -1132,8 +1131,8 @@
    // Update peak data -------------------------------------------------
    // XXX: this is not really the right way to do peak data -- it's only
    // peak snapshot data, the true peak could be between snapshots.
-   if (snapshot->total_szB > peak_snapshot_total_szB) {
-      peak_snapshot_total_szB = snapshot->total_szB;
+   if (snapshot->total_szB > peak_total_szB) {
+      peak_total_szB = snapshot->total_szB;
    }
 
    // Finish up verbosity and stats stuff.
@@ -1234,9 +1233,6 @@
    if (heap_szB_delta     <0) tl_assert(heap_szB      >= -heap_szB_delta     );
    n_heap_blocks += n_heap_blocks_delta;
    heap_szB      += heap_szB_delta;
-   if (heap_szB > peak_heap_szB) {
-      peak_heap_szB = heap_szB;
-   }
 
    if (heap_szB_delta < 0) total_allocs_deallocs_szB -= heap_szB_delta;
    if (heap_szB_delta > 0) total_allocs_deallocs_szB += heap_szB_delta;


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to