g_curr_bytes, g_curr_blocks);
VG_(umsg)("Reads: %'llu bytes\n", g_reads_bytes);
VG_(umsg)("Writes: %'llu bytes\n", g_writes_bytes);
+
+ // Print a how-to-view-the-profile hint.
+ VG_(umsg)("\n");
+ VG_(umsg)("To view the resulting profile, open\n");
+ VG_(umsg)(" file://%s/%s\n", VG_(libdir), "dh_view.html");
+ VG_(umsg)("in a web browser, click on \"Load...\" "
+ "and then select the file\n");
+ VG_(umsg)(" %s\n", dhat_out_file);
+ VG_(umsg)("Scroll to the end the displayed page to see a short\n");
+ VG_(umsg)("explanation of some of the abbreviations used in the page.\n");
}
//------------------------------------------------------------//
-
-
Total: 2,534 bytes in 9 blocks
At t-gmax: 1,025 bytes in 1 blocks
At t-end: 0 bytes in 0 blocks
-
-
Total: 6,000 bytes in 3 blocks
At t-gmax: 5,000 bytes in 2 blocks
At t-end: 3,000 bytes in 1 blocks
-
-
Total: 1,000 bytes in 19 blocks
At t-gmax: 706 bytes in 1 blocks
At t-end: 294 bytes in 18 blocks
-
-
Total: 0 bytes in 0 blocks
At t-gmax: 0 bytes in 0 blocks
At t-end: 0 bytes in 0 blocks
$dir/../../tests/filter_stderr_basic |
-# Remove "Massif, ..." line and the following copyright line.
-sed "/^DHAT, a dynamic heap analysis tool/ , /./ d"
+# Remove the "DHAT, ..." line and the following copyright line.
+sed "/^DHAT, a dynamic heap analysis tool/ , /./ d" |
+# Remove the six hint-lines, which look like this:
+#
+# To view the resulting profile, open
+# file:///path/to/valgrind/installation/lib/valgrind/dh_view.html
+# in a web browser, click on "Load..." and then select the file
+# /path/to/dhat.out.12345
+# Scroll to the end the displayed page to see a short
+# explanation of some of the abbreviations used in the page.
+#
+sed "/^To view the resulting profile/ d" |
+sed "/^ file:\/\/\// d" |
+sed "/^in a web browser/ d" |
+sed "/^ \// d" | # This is pretty feeble, but I don't see
+ # how to do better
+sed "/^Scroll to the end/ d" |
+sed "/^explanation of some/ d" |
+
+# and remove any blank lines in the output
+sed "/^[[:space:]]*$/d"
-
-
Total: 102 bytes in 16 blocks
At t-gmax: 102 bytes in 16 blocks
At t-end: 102 bytes in 16 blocks
-
-
Total: 16 bytes in 1 blocks
At t-gmax: 16 bytes in 1 blocks
At t-end: 16 bytes in 1 blocks