summaryrefslogtreecommitdiffstats
path: root/kcachegrind/converters/memprof2calltree
diff options
context:
space:
mode:
Diffstat (limited to 'kcachegrind/converters/memprof2calltree')
-rwxr-xr-xkcachegrind/converters/memprof2calltree38
1 files changed, 0 insertions, 38 deletions
diff --git a/kcachegrind/converters/memprof2calltree b/kcachegrind/converters/memprof2calltree
deleted file mode 100755
index e82d6e85..00000000
--- a/kcachegrind/converters/memprof2calltree
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/perl
-#
-# Convert the memory profiles of memprof to calltree format,
-# loadable with KCachegrind
-#
-# (C) 2004, Josef Weidendorfer
-
-print "events: Allocated\n";
-
-while(<>) {
- if (/^(\S.*)$/) {
- $next = 0;
- print "\nfn=$1\n";
- next;
- }
- if (/^ children:/) {
- $next = 1; #children
- next;
- }
- if (/^ inherited:/) {
- $next = 2; #inherited
- next;
- }
- if (/^ total:/) {
- # ignore, is calculated
- next;
- }
- if (/^ self:\s*(\d+)/) {
- if ($1 ne "0") {
- print "0 $1\n";
- }
- next;
- }
- if (/^\s+(\S.*?):\s*(\d+)$/) {
- if ($next < 2) { next; }
- print "cfn=$1\ncalls=0 0\n0 $2\n";
- }
-}