From: Nicholas Nethercote Date: Tue, 4 Aug 2009 06:10:30 +0000 (+0000) Subject: A couple of minor Massif manual improvements. X-Git-Tag: svn/VALGRIND_3_5_0~143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05820177ef0f3005b3e79cfa87271e44140701b9;p=thirdparty%2Fvalgrind.git A couple of minor Massif manual improvements. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10707 --- diff --git a/massif/docs/ms-manual.xml b/massif/docs/ms-manual.xml index 3e9d1c75a2..80c4695663 100644 --- a/massif/docs/ms-manual.xml +++ b/massif/docs/ms-manual.xml @@ -68,7 +68,8 @@ valgrind --tool=massif prog statistics are printed to Valgrind's commentary; all of Massif's profiling data is written to a file. By default, this file is called massif.out.<pid>, where -<pid> is the process ID. +<pid> is the process ID, although this filename +can be changed with the option. To see the information gathered by Massif in an easy-to-read form, use the ms_print script. If the output file's name is @@ -222,14 +223,16 @@ Number of snapshots: 25 Detailed snapshots: [9, 14 (peak), 24] ]]> -Each vertical bar represents a snapshot, i.e. a measurement of the -memory usage at a certain point in time. If the next snapshot is more than -one column away, a horizontal line of characters is drawn from the top of -the snapshot to just before the next snapshot column. The text at the -bottom show that 25 snapshots were taken for this program, which is one per -heap allocation/deallocation, plus a couple of extras. Massif starts by -taking snapshots for every heap allocation/deallocation, but as a program -runs for longer, it takes snapshots less frequently. It also discards older +The size of the graph can be changed with ms_print's + and options. Each vertical bar +represents a snapshot, i.e. a measurement of the memory usage at a certain +point in time. If the next snapshot is more than one column away, a +horizontal line of characters is drawn from the top of the snapshot to just +before the next snapshot column. The text at the bottom show that 25 +snapshots were taken for this program, which is one per heap +allocation/deallocation, plus a couple of extras. Massif starts by taking +snapshots for every heap allocation/deallocation, but as a program runs for +longer, it takes snapshots less frequently. It also discards older snapshots as the program goes on; when it reaches the maximum number of snapshots (100 by default, although changeable with the option) half of them are @@ -358,7 +361,10 @@ a small amount of information is recorded for each one: The size of the stack(s). By default, stack profiling is off as it slows Massif down greatly. Therefore, the stack column is zero - in the example. + in the example. Stack profiling can be turned on with the + option. + + The next snapshot is detailed. As well as the basic counts, it gives