From: Nicholas Nethercote Date: Mon, 26 Nov 2007 22:17:19 +0000 (+0000) Subject: Minor tweak to x-axis positioning of bars. X-Git-Tag: svn/VALGRIND_3_3_0~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d6ffee32a29b25b90ba13c6a21158cab1ae3fc0;p=thirdparty%2Fvalgrind.git Minor tweak to x-axis positioning of bars. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7230 --- diff --git a/massif/ms_main.c b/massif/ms_main.c index 660a7188b7..b6997b9899 100644 --- a/massif/ms_main.c +++ b/massif/ms_main.c @@ -35,7 +35,6 @@ // - do a graph-drawing test // - Get Josef to update the Callgrind --callgrind-out-file option. // - Use '_' instead of '.' for detailed/peak bars? -// - ms_print -- XXX on line 535 // // Todo -- nice, but less critical: // - make file format more generic. Obstacles: diff --git a/massif/ms_print.in b/massif/ms_print.in index 4b13f3c705..1b22534233 100755 --- a/massif/ms_print.in +++ b/massif/ms_print.in @@ -532,12 +532,6 @@ sub read_input_file() if (0 == $end_time ) { $end_time = 1; } my $K = $peak_mem_total_szB / $graph_y; -# XXX: remove this? see 10 lines down... - # If we leave end_time as is, the final snapshot will spill over past - # the last column. So we add a small epsilon to it to prevent this from - # happening. - $end_time += 0.001; - for (my $i = 0; $i < $n_snapshots; $i++) { # Work out which column this snapshot belongs to. diff --git a/massif/tests/alloc-fns-A.post.exp b/massif/tests/alloc-fns-A.post.exp index 20b43ca42d..329074fb01 100644 --- a/massif/tests/alloc-fns-A.post.exp +++ b/massif/tests/alloc-fns-A.post.exp @@ -8,24 +8,24 @@ ms_print arguments: massif.out KB 1.758^ @ | @ - | . @ - | : @ - | . : @ - | : : @ - | : : @ - | : : : @ - | : : : @ - | : : : : @ - | : : : : @ - | . : : : : @ - | : : : : : @ - | . : : : : : @ - | : : : : : : @ - | : : : : : : @ - | : : : : : : : @ - | : : : : : : : @ - | : : : : : : : : @ - | : : : : : : : : @ + | . @ + | : @ + | . : @ + | : : @ + | : : @ + | : : : @ + | : : : @ + | : : : : @ + | : : : : @ + | . : : : : @ + | : : : : : @ + | . : : : : : @ + | : : : : : : @ + | : : : : : : @ + | : : : : : : : @ + | : : : : : : : @ + | : : : : : : : : @ + | : : : : : : : : @ 0 +----------------------------------------------------------------------->KB 0 1.758 diff --git a/massif/tests/alloc-fns-B.post.exp b/massif/tests/alloc-fns-B.post.exp index bb1c6e9f65..d491ffa2af 100644 --- a/massif/tests/alloc-fns-B.post.exp +++ b/massif/tests/alloc-fns-B.post.exp @@ -8,24 +8,24 @@ ms_print arguments: massif.out KB 1.758^ @ | @ - | . @ - | : @ - | . : @ - | : : @ - | : : @ - | : : : @ - | : : : @ - | : : : : @ - | : : : : @ - | . : : : : @ - | : : : : : @ - | . : : : : : @ - | : : : : : : @ - | : : : : : : @ - | : : : : : : : @ - | : : : : : : : @ - | : : : : : : : : @ - | : : : : : : : : @ + | . @ + | : @ + | . : @ + | : : @ + | : : @ + | : : : @ + | : : : @ + | : : : : @ + | : : : : @ + | . : : : : @ + | : : : : : @ + | . : : : : : @ + | : : : : : : @ + | : : : : : : @ + | : : : : : : : @ + | : : : : : : : @ + | : : : : : : : : @ + | : : : : : : : : @ 0 +----------------------------------------------------------------------->KB 0 1.758 diff --git a/massif/tests/big-alloc.post.exp b/massif/tests/big-alloc.post.exp index af84e2a04c..f85dc77678 100644 --- a/massif/tests/big-alloc.post.exp +++ b/massif/tests/big-alloc.post.exp @@ -16,16 +16,16 @@ ms_print arguments: massif.out | : : @ : | : : : @ : | : : : @ : - | : : : : @ : - | : : : : @ : - | : : : : : @ : - | : : : : : @ : - | : : : : : : @ : - | : : : : : : @ : - | : : : : : : : @ : - | : : : : : : : @ : - | : : : : : : : : @ : - | : : : : : : : : @ : + | : : : : @ : + | : : : : @ : + | : : : : : @ : + | : : : : : @ : + | : : : : : : @ : + | : : : : : : @ : + | : : : : : : : @ : + | : : : : : : : @ : + | : : : : : : : : @ : + | : : : : : : : : @ : 0 +----------------------------------------------------------------------->MB 0 100.0 diff --git a/massif/tests/custom_alloc.post.exp b/massif/tests/custom_alloc.post.exp index 567534f41f..55fd13f2a2 100644 --- a/massif/tests/custom_alloc.post.exp +++ b/massif/tests/custom_alloc.post.exp @@ -6,26 +6,26 @@ ms_print arguments: massif.out B - 208^ # : - | # : - | # : - | # : - | # : - | # : - | # : - | # : - | # : - | # . : - | @ # : : - | @ # : : - | @ # : : - | @ # : : - | @ # : : - | @ # : : - | @ # : : - | @ # : : - | @ # : : - | @ # : : + 208^ # : + | # : + | # : + | # : + | # : + | # : + | # : + | # : + | # : + | # . : + | @ # : : + | @ # : : + | @ # : : + | @ # : : + | @ # : : + | @ # : : + | @ # : : + | @ # : : + | @ # : : + | @ # : : 0 +----------------------------------------------------------------------->KB 0 1.242 diff --git a/massif/tests/deep-A.post.exp b/massif/tests/deep-A.post.exp index 493afdf6e4..f45d3fa818 100644 --- a/massif/tests/deep-A.post.exp +++ b/massif/tests/deep-A.post.exp @@ -16,16 +16,16 @@ ms_print arguments: massif.out | : : @ : | : : : @ : | : : : @ : - | : : : : @ : - | : : : : @ : - | : : : : : @ : - | : : : : : @ : - | : : : : : : @ : - | : : : : : : @ : - | : : : : : : : @ : - | : : : : : : : @ : - | : : : : : : : : @ : - | : : : : : : : : @ : + | : : : : @ : + | : : : : @ : + | : : : : : @ : + | : : : : : @ : + | : : : : : : @ : + | : : : : : : @ : + | : : : : : : : @ : + | : : : : : : : @ : + | : : : : : : : : @ : + | : : : : : : : : @ : 0 +----------------------------------------------------------------------->KB 0 2.031 diff --git a/massif/tests/deep-B.post.exp b/massif/tests/deep-B.post.exp index e3e3efe947..360c3a56ae 100644 --- a/massif/tests/deep-B.post.exp +++ b/massif/tests/deep-B.post.exp @@ -16,16 +16,16 @@ ms_print arguments: massif.out | : : @ : | : : : @ : | : : : @ : - | : : : : @ : - | : : : : @ : - | : : : : : @ : - | : : : : : @ : - | : : : : : : @ : - | : : : : : : @ : - | : : : : : : : @ : - | : : : : : : : @ : - | : : : : : : : : @ : - | : : : : : : : : @ : + | : : : : @ : + | : : : : @ : + | : : : : : @ : + | : : : : : @ : + | : : : : : : @ : + | : : : : : : @ : + | : : : : : : : @ : + | : : : : : : : @ : + | : : : : : : : : @ : + | : : : : : : : : @ : 0 +----------------------------------------------------------------------->KB 0 2.031 diff --git a/massif/tests/deep-C.post.exp b/massif/tests/deep-C.post.exp index fc12a5a484..c54698e551 100644 --- a/massif/tests/deep-C.post.exp +++ b/massif/tests/deep-C.post.exp @@ -16,16 +16,16 @@ ms_print arguments: massif.out | : : @ : | : : : @ : | : : : @ : - | : : : : @ : - | : : : : @ : - | : : : : : @ : - | : : : : : @ : - | : : : : : : @ : - | : : : : : : @ : - | : : : : : : : @ : - | : : : : : : : @ : - | : : : : : : : : @ : - | : : : : : : : : @ : + | : : : : @ : + | : : : : @ : + | : : : : : @ : + | : : : : : @ : + | : : : : : : @ : + | : : : : : : @ : + | : : : : : : : @ : + | : : : : : : : @ : + | : : : : : : : : @ : + | : : : : : : : : @ : 0 +----------------------------------------------------------------------->KB 0 2.031 diff --git a/massif/tests/deep-D.post.exp b/massif/tests/deep-D.post.exp index 5d47fe55fb..104c582199 100644 --- a/massif/tests/deep-D.post.exp +++ b/massif/tests/deep-D.post.exp @@ -16,16 +16,16 @@ ms_print arguments: massif.out | : : @ : | : : : @ : | : : : @ : - | : : : : @ : - | : : : : @ : - | : : : : : @ : - | : : : : : @ : - | : : : : : : @ : - | : : : : : : @ : - | : : : : : : : @ : - | : : : : : : : @ : - | : : : : : : : : @ : - | : : : : : : : : @ : + | : : : : @ : + | : : : : @ : + | : : : : : @ : + | : : : : : @ : + | : : : : : : @ : + | : : : : : : @ : + | : : : : : : : @ : + | : : : : : : : @ : + | : : : : : : : : @ : + | : : : : : : : : @ : 0 +----------------------------------------------------------------------->KB 0 2.031 diff --git a/massif/tests/new-cpp.post.exp b/massif/tests/new-cpp.post.exp index ce38885678..fec6638863 100644 --- a/massif/tests/new-cpp.post.exp +++ b/massif/tests/new-cpp.post.exp @@ -6,26 +6,26 @@ ms_print arguments: massif.out KB -11.75^ # - | # - | # - | . # - | : # - | : # - | : # - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | . : : # : . - | : : : # : : - | : : : # : : - | : : : # : : - | : : : # : : : - | : : : # : : : - | : : : # : : : +11.75^ # + | # + | # + | . # + | : # + | : # + | : # + | : : # : + | : : # : + | : : # : + | : : # : + | : : # : + | : : # : + | . : : # : . + | : : : # : : + | : : : # : : + | : : : # : : + | : : : # : : : + | : : : # : : : + | : : : # : : : 0 +----------------------------------------------------------------------->KB 0 23.50 diff --git a/massif/tests/overloaded-new.post.exp b/massif/tests/overloaded-new.post.exp index 179ef2979a..fdae0221b2 100644 --- a/massif/tests/overloaded-new.post.exp +++ b/massif/tests/overloaded-new.post.exp @@ -6,26 +6,26 @@ ms_print arguments: massif.out KB -11.75^ # - | # - | # - | . # - | : # - | : # - | : # - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | . : : # : . - | : : : # : : - | : : : # : : - | : : : # : : - | : : : # : : : - | : : : # : : : - | : : : # : : : +11.75^ # + | # + | # + | . # + | : # + | : # + | : # + | : : # : + | : : # : + | : : # : + | : : # : + | : : # : + | : : # : + | . : : # : . + | : : : # : : + | : : : # : : + | : : : # : : + | : : : # : : : + | : : : # : : : + | : : : # : : : 0 +----------------------------------------------------------------------->KB 0 23.50 diff --git a/massif/tests/peak.post.exp b/massif/tests/peak.post.exp index 89d207e58f..01f64c9ed3 100644 --- a/massif/tests/peak.post.exp +++ b/massif/tests/peak.post.exp @@ -11,21 +11,21 @@ ms_print arguments: massif.out | @ :@ # | @. @ :@ # | @ @: @ :@ # - | @ @ @: @ :@ # - | .@ @ @ @: @ :@ # - | @ :@ @ @ @: @ :@ # - | @. @ :@ @ @ @: @ :@ # - | @ @: @ :@ @ @ @: @ :@ # - | @ @ @: @ :@ @ @ @: @ :@ # - | .@ @ @ @: @ :@ @ @ @: @ :@ # - | @ :@ @ @ @: @ :@ @ @ @: @ :@ # - | @. @ :@ @ @ @: @ :@ @ @ @: @ :@ # - | @ @: @ :@ @ @ @: @ :@ @ @ @: @ :@ # - | @ @ @: @ :@ @ @ @: @ :@ @ @ @: @ :@ # - | .@ @ @ @: @ :@ @ @ @: @ :@ @ @ @: @ :@ # - | @ :@ @ @ @: @ :@ @ @ @: @ :@ @ @ @: @ :@ # - | @. @ :@ @ @ @: @ :@ @ @ @: @ :@ @ @ @: @ :@ # - | @ @: @ :@ @ @ @: @ :@ @ @ @: @ :@ @ @ @: @ :@ # + | @. @ @: @ :@ # + | .@ @: @ @: @ :@ # + | @ :@ @: @ @: @ :@ # + | @. @ :@ @: @ @: @ :@ # + | @ @: @ :@ @: @ @: @ :@ # + | @. @ @: @ :@ @: @ @: @ :@ # + | .@ @: @ @: @ :@ @: @ @: @ :@ # + | @ :@ @: @ @: @ :@ @: @ @: @ :@ # + | @. @ :@ @: @ @: @ :@ @: @ @: @ :@ # + | @ @: @ :@ @: @ @: @ :@ @: @ @: @ :@ # + | @. @ @: @ :@ @: @ @: @ :@ @: @ @: @ :@ # + | .@ @: @ @: @ :@ @: @ @: @ :@ @: @ @: @ :@ # + | @ :@ @: @ @: @ :@ @: @ @: @ :@ @: @ @: @ :@ # + | @. @ :@ @: @ @: @ :@ @: @ @: @ :@ @: @ @: @ :@ # + | @ @: @ :@ @: @ @: @ :@ @: @ @: @ :@ @: @ @: @ :@ # 0 +----------------------------------------------------------------------->KB 0 19.69 diff --git a/massif/tests/peak2.post.exp b/massif/tests/peak2.post.exp index 3e9cee60bc..9d7ca44762 100644 --- a/massif/tests/peak2.post.exp +++ b/massif/tests/peak2.post.exp @@ -11,21 +11,21 @@ ms_print arguments: massif.out | @ :: # | :. @ :: # | @ :: @ :: # - | . @ :: @ :: # - | .@ : @ :: @ :: # - | . :@ : @ :: @ :: # - | @. : :@ : @ :: @ :: # - | . @: : :@ : @ :: @ :: # - | @ : @: : :@ : @ :: @ :: # - | .@ @ : @: : :@ : @ :: @ :: # - | @ :@ @ : @: : :@ : @ :: @ :: # - | @. @ :@ @ : @: : :@ : @ :: @ :: # - | @ @: @ :@ @ : @: : :@ : @ :: @ :: # - | @ @ @: @ :@ @ : @: : :@ : @ :: @ :: # - | .@ @ @ @: @ :@ @ : @: : :@ : @ :: @ :: # - | @ :@ @ @ @: @ :@ @ : @: : :@ : @ :: @ :: # - | @. @ :@ @ @ @: @ :@ @ : @: : :@ : @ :: @ :: # - | @ @: @ :@ @ @ @: @ :@ @ : @: : :@ : @ :: @ :: # + | :. @ :: @ :: # + | .@ :: @ :: @ :: # + | . :@ :: @ :: @ :: # + | @. : :@ :: @ :: @ :: # + | . @: : :@ :: @ :: @ :: # + | @. : @: : :@ :: @ :: @ :: # + | .@ @: : @: : :@ :: @ :: @ :: # + | @ :@ @: : @: : :@ :: @ :: @ :: # + | @. @ :@ @: : @: : :@ :: @ :: @ :: # + | @ @: @ :@ @: : @: : :@ :: @ :: @ :: # + | @. @ @: @ :@ @: : @: : :@ :: @ :: @ :: # + | .@ @: @ @: @ :@ @: : @: : :@ :: @ :: @ :: # + | @ :@ @: @ @: @ :@ @: : @: : :@ :: @ :: @ :: # + | @. @ :@ @: @ @: @ :@ @: : @: : :@ :: @ :: @ :: # + | @ @: @ :@ @: @ @: @ :@ @: : @: : :@ :: @ :: @ :: # 0 +----------------------------------------------------------------------->KB 0 19.69 diff --git a/massif/tests/realloc.post.exp b/massif/tests/realloc.post.exp index fc0a7fb8f3..c6360f98d8 100644 --- a/massif/tests/realloc.post.exp +++ b/massif/tests/realloc.post.exp @@ -6,26 +6,26 @@ ms_print arguments: --threshold=0 massif.out B - 600^ # - | # - | # - | # - | # - | # - | # - | @ # - | @ # - | @ # - | @ # - | @ # - | @ # - | @ # - | @ # - | @ # - | @ # - | @ # - | @ # - | @ # + 600^ # + | # + | # + | # + | # + | # + | # + | @ # + | @ # + | @ # + | @ # + | @ # + | @ # + | @ # + | @ # + | @ # + | @ # + | @ # + | @ # + | @ # 0 +----------------------------------------------------------------------->KB 0 1.172 diff --git a/massif/tests/toobig-allocs.vgtest b/massif/tests/toobig-allocs.vgtest index ca231b03cd..76f4d6357b 100644 --- a/massif/tests/toobig-allocs.vgtest +++ b/massif/tests/toobig-allocs.vgtest @@ -1,2 +1,3 @@ prog: ../../tests/toobig-allocs +vgopts: --massif-out-file=massif.out cleanup: rm massif.out