Debian Codegraph @

massif/tests/filter_verbose

raw
1 #! /bin/sh
2
3 # This filters out all the lines that don't have "Massif:" in them. For
4 # testing the -v option.
5
6 dir=`dirname $0`
7
8 $dir/filter_stderr |
9
10 # Remove any --pid:0: strings (debuglog level zero output)
11 sed "/^--[0-9]\{1,7\}:0:*/d" |
12
13 # Only print lines that contain "Massif:". The -n means don't print any
14 # lines by default, and the 'p' means do print those that match the pattern.
15 sed -n "/Massif:/p" |
16
17 # These ignored heap counts could vary from machine to machine.
18 sed "s/\(Massif: ignored heap allocs:\).*/\1 .../" |
19 sed "s/\(Massif: ignored heap frees:\).*/\1 .../" |
20 sed "s/\(Massif: ignored heap reallocs:\).*/\1 .../" |
21
22 # These XPt counts vary from machine to machine, because the size of the
23 # stack trace can vary -- eg. some machines have more stack frames below
24 # zero than other machines. So filter them out.
25 sed "s/\(Massif: XPts:\).*/\1 .../" |
26 sed "s/\(Massif: top-XPts:\).*/\1 .../" |
27 sed "s/\(Massif: XPt init expansions:\).*/\1 .../" |
28 sed "s/\(Massif: XPt later expansions:\).*/\1 .../" |
29 sed "s/\(Massif: SXPt allocs:\).*/\1 .../" |
30 sed "s/\(Massif: SXPt frees:\).*/\1 .../" |
31 sed "s/\(Massif: XCon redos:\).*/\1 .../" |
32 sed "s/Massif: operator new(unsigned long/Massif: operator new(unsigned/" |
33 sed "s/Massif: operator new\[\](unsigned long/Massif: operator new\[\](unsigned/"
34
35