Author: njn
Date: 2007-10-09 01:40:15 +0100 (Tue, 09 Oct 2007)
New Revision: 6965

Log:
Forgot to add these in the peak-taking commit.

Added:
   branches/MASSIF2/massif/tests/ignoring.c
   branches/MASSIF2/massif/tests/ignoring.post.exp
   branches/MASSIF2/massif/tests/ignoring.stderr.exp
   branches/MASSIF2/massif/tests/ignoring.vgtest


Added: branches/MASSIF2/massif/tests/ignoring.c
===================================================================
--- branches/MASSIF2/massif/tests/ignoring.c                            (rev 0)
+++ branches/MASSIF2/massif/tests/ignoring.c    2007-10-09 00:40:15 UTC (rev 
6965)
@@ -0,0 +1,31 @@
+// When we cull and compute the new minimum time between snapshots, we want
+// to ignore any gap between two uncullable snapshots, because it is not
+// representative.  This program tests that.
+
+
+#include <stdlib.h>
+
+int main(void)
+{
+   int i;
+   
+   // The peak is from the first allocation.
+   int* x = malloc(1000);
+   free(x);
+
+   // Now do an allocation to provide the post-peak baseline.
+   malloc(500);
+
+   // Now we do lots of allocations below the peak.  With the proper
+   // handling, the allocations should still be smoothly distributed.
+   // Without it, the snapshots in the second half of the graph would be
+   // clustered much more closely than those in the first half.
+   //
+
+   for (i = 0; i < 350; i++) {
+      int* y = malloc(250);
+      free(y);
+   }
+   
+   return 0;
+}

Added: branches/MASSIF2/massif/tests/ignoring.post.exp
===================================================================
--- branches/MASSIF2/massif/tests/ignoring.post.exp                             
(rev 0)
+++ branches/MASSIF2/massif/tests/ignoring.post.exp     2007-10-09 00:40:15 UTC 
(rev 6965)
@@ -0,0 +1,236 @@
+--------------------------------------------------------------------------------
+Command:            ./ignoring
+Massif arguments:   --stacks=no --time-unit=B
+ms_print arguments: massif.out
+--------------------------------------------------------------------------------
+
+
+    KB
+0.984^#                                                                       
+     |#                                                                       
+     |#                                                                       
+     |#                                                                       
+     |#                                                                       
+     |#         ::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |#         ::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |#         ::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |#         ::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |#         ::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |# @:::@:::::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |# @:::@:::::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |# @:::@:::::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |# @:::@:::::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |# @:::@:::::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |# @:::@:::::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |# @:::@:::::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |# @:::@:::::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |# @:::@:::::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+     |# @:::@:::::::::::::::@:::@:::@:::@:::@: ::@:::::::@:::::::@:::::::@::::
+   0 [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]>KB
+     0                                                                   178.6
+
+Number of snapshots: 88
+ Detailed snapshots: [1 (peak), 3, 8, 26, 31, 36, 41, 46, 52, 62, 72, 82]
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+  0              0                0                0             0            0
+  1          1,008            1,008            1,000             8            0
+99.21% (1000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
+->99.21% (1000B) 0x80483D8: main (ignoring.c:13)
+  
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+  2          5,104              508              500             8            0
+  3          7,168              508              500             8            0
+98.43% (500B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
+->98.43% (500B) 0x80483F9: main (ignoring.c:17)
+| 
+->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
+
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+  4          9,232              508              500             8            0
+  5         11,296              508              500             8            0
+  6         13,360              508              500             8            0
+  7         15,424              508              500             8            0
+  8         17,488              508              500             8            0
+98.43% (500B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
+->98.43% (500B) 0x80483F9: main (ignoring.c:17)
+| 
+->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
+
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+  9         19,552              508              500             8            0
+ 10         21,616              508              500             8            0
+ 11         23,680              508              500             8            0
+ 12         27,034              766              750            16            0
+ 13         29,098              766              750            16            0
+ 14         31,162              766              750            16            0
+ 15         33,226              766              750            16            0
+ 16         35,290              766              750            16            0
+ 17         37,354              766              750            16            0
+ 18         39,418              766              750            16            0
+ 19         41,482              766              750            16            0
+ 20         43,546              766              750            16            0
+ 21         45,610              766              750            16            0
+ 22         47,674              766              750            16            0
+ 23         49,738              766              750            16            0
+ 24         51,802              766              750            16            0
+ 25         53,866              766              750            16            0
+ 26         55,930              766              750            16            0
+97.91% (750B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
+->65.27% (500B) 0x80483F9: main (ignoring.c:17)
+| 
+->32.64% (250B) 0x8048412: main (ignoring.c:26)
+| 
+->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
+
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+ 27         57,994              766              750            16            0
+ 28         60,058              766              750            16            0
+ 29         62,122              766              750            16            0
+ 30         64,186              766              750            16            0
+ 31         66,250              766              750            16            0
+97.91% (750B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
+->65.27% (500B) 0x80483F9: main (ignoring.c:17)
+| 
+->32.64% (250B) 0x8048412: main (ignoring.c:26)
+| 
+->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
+
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+ 32         68,314              766              750            16            0
+ 33         70,378              766              750            16            0
+ 34         72,442              766              750            16            0
+ 35         74,506              766              750            16            0
+ 36         76,570              766              750            16            0
+97.91% (750B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
+->65.27% (500B) 0x80483F9: main (ignoring.c:17)
+| 
+->32.64% (250B) 0x8048412: main (ignoring.c:26)
+| 
+->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
+
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+ 37         78,634              766              750            16            0
+ 38         80,698              766              750            16            0
+ 39         82,762              766              750            16            0
+ 40         84,826              766              750            16            0
+ 41         86,890              766              750            16            0
+97.91% (750B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
+->65.27% (500B) 0x80483F9: main (ignoring.c:17)
+| 
+->32.64% (250B) 0x8048412: main (ignoring.c:26)
+| 
+->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
+
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+ 42         88,954              766              750            16            0
+ 43         91,018              766              750            16            0
+ 44         93,082              766              750            16            0
+ 45         95,146              766              750            16            0
+ 46         97,210              766              750            16            0
+97.91% (750B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
+->65.27% (500B) 0x80483F9: main (ignoring.c:17)
+| 
+->32.64% (250B) 0x8048412: main (ignoring.c:26)
+| 
+->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
+
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+ 47         99,274              766              750            16            0
+ 48        101,338              766              750            16            0
+ 49        104,434              766              750            16            0
+ 50        106,498              766              750            16            0
+ 51        108,562              766              750            16            0
+ 52        110,626              766              750            16            0
+97.91% (750B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
+->65.27% (500B) 0x80483F9: main (ignoring.c:17)
+| 
+->32.64% (250B) 0x8048412: main (ignoring.c:26)
+| 
+->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
+
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+ 53        112,690              766              750            16            0
+ 54        114,754              766              750            16            0
+ 55        116,818              766              750            16            0
+ 56        118,882              766              750            16            0
+ 57        120,946              766              750            16            0
+ 58        123,010              766              750            16            0
+ 59        125,074              766              750            16            0
+ 60        127,138              766              750            16            0
+ 61        129,202              766              750            16            0
+ 62        131,266              766              750            16            0
+97.91% (750B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
+->65.27% (500B) 0x80483F9: main (ignoring.c:17)
+| 
+->32.64% (250B) 0x8048412: main (ignoring.c:26)
+| 
+->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
+
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+ 63        133,330              766              750            16            0
+ 64        135,394              766              750            16            0
+ 65        137,458              766              750            16            0
+ 66        139,522              766              750            16            0
+ 67        141,586              766              750            16            0
+ 68        143,650              766              750            16            0
+ 69        145,714              766              750            16            0
+ 70        147,778              766              750            16            0
+ 71        149,842              766              750            16            0
+ 72        151,906              766              750            16            0
+97.91% (750B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
+->65.27% (500B) 0x80483F9: main (ignoring.c:17)
+| 
+->32.64% (250B) 0x8048412: main (ignoring.c:26)
+| 
+->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
+
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+ 73        153,970              766              750            16            0
+ 74        156,034              766              750            16            0
+ 75        158,098              766              750            16            0
+ 76        160,162              766              750            16            0
+ 77        162,226              766              750            16            0
+ 78        164,290              766              750            16            0
+ 79        166,354              766              750            16            0
+ 80        168,418              766              750            16            0
+ 81        170,482              766              750            16            0
+ 82        172,546              766              750            16            0
+97.91% (750B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
+->65.27% (500B) 0x80483F9: main (ignoring.c:17)
+| 
+->32.64% (250B) 0x8048412: main (ignoring.c:26)
+| 
+->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
+
+--------------------------------------------------------------------------------
+  n        time(B)         total(B)   useful-heap(B) admin-heap(B)    stacks(B)
+--------------------------------------------------------------------------------
+ 83        174,610              766              750            16            0
+ 84        176,674              766              750            16            0
+ 85        178,738              766              750            16            0
+ 86        180,802              766              750            16            0
+ 87        182,866              766              750            16            0

Added: branches/MASSIF2/massif/tests/ignoring.stderr.exp
===================================================================
--- branches/MASSIF2/massif/tests/ignoring.stderr.exp                           
(rev 0)
+++ branches/MASSIF2/massif/tests/ignoring.stderr.exp   2007-10-09 00:40:15 UTC 
(rev 6965)
@@ -0,0 +1,2 @@
+
+

Added: branches/MASSIF2/massif/tests/ignoring.vgtest
===================================================================
--- branches/MASSIF2/massif/tests/ignoring.vgtest                               
(rev 0)
+++ branches/MASSIF2/massif/tests/ignoring.vgtest       2007-10-09 00:40:15 UTC 
(rev 6965)
@@ -0,0 +1,4 @@
+prog: ignoring
+vgopts: --stacks=no --time-unit=B
+post: perl ../../massif/ms_print massif.out
+cleanup: rm massif.out


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to