| 1 |
#! /bin/sh |
| 2 |
|
| 3 |
dir=`dirname $0` |
| 4 |
|
| 5 |
$dir/../../tests/filter_stderr_basic | |
| 6 |
|
| 7 |
# Remove the "DHAT, ..." line and the following copyright line. |
| 8 |
sed "/^DHAT, a dynamic heap analysis tool/ , /./ d" | |
| 9 |
|
| 10 |
# Remove the six hint-lines, which look like this: |
| 11 |
# |
| 12 |
# To view the resulting profile, open |
| 13 |
# file:///path/to/valgrind/installation/lib/valgrind/dh_view.html |
| 14 |
# in a web browser, click on "Load..." and then select the file |
| 15 |
# /path/to/dhat.out.12345 |
| 16 |
# Scroll to the end the displayed page to see a short |
| 17 |
# explanation of some of the abbreviations used in the page. |
| 18 |
# |
| 19 |
sed "/^To view the resulting profile/ d" | |
| 20 |
sed "/^ file:\/\/\// d" | |
| 21 |
sed "/^in a web browser/ d" | |
| 22 |
sed "/^ \// d" | # This is pretty feeble, but I don't see |
| 23 |
# how to do better |
| 24 |
sed "/^The text at the bottom/ d" | |
| 25 |
|
| 26 |
# and remove any blank lines in the output |
| 27 |
sed "/^[[:space:]]*$/d" |