Changeset 6520ef5
- Timestamp:
- 05/28/15 17:50:41 (9 years ago)
- Branches:
- master
- Children:
- 81dea5b
- Parents:
- c4f89cf
- git-author:
- Hal Finkel <hfinkel@…> (05/28/15 17:50:41)
- git-committer:
- Hal Finkel <hfinkel@…> (05/28/15 17:50:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
memlog2dot
rc4f89cf r6520ef5 118 118 119 119 if ($func !~ /^\?/) { 120 # In general, this function name might look something like: 121 # 00000329.plt_call.wcsnrtombs@@GLIBC_2.3+0 122 $func =~ s/@.*//; 120 123 $func =~ s/.*\.//; 121 124 $func = `c++filt '$func'`; … … 158 161 } 159 162 160 printf("N%s [label=\"%s\\n%s\", shape=box, fontsize=%.1f%s];\n",163 printf("N%s [label=\"%s\\n%s\", shape=box, fontsize=%.1f%s];\n", 161 164 $pc, $name, format_bytes($local_size), $fs); 162 165 } … … 179 182 180 183 my $weight = 100.0 * sqrt($frac); 181 my $style = sprintf("setlinewidth(%f)", 3.0 * sqrt($frac));184 my $style = sprintf("setlinewidth(%f)", 8.0 * sqrt($frac)); 182 185 183 printf("N%s -> N%s [label=\"%s\", weight=%d, style=\"%s\"];\n", 184 $pc, $cpc, format_bytes($child_size), $weight, $style); 186 my $fs = 40.0 * $frac**0.125; 187 188 printf("N%s -> N%s [label=\"%s\", weight=%d, style=\"%s\", fontsize=%.1f];\n", 189 $pc, $cpc, format_bytes($child_size), $weight, $style, $fs); 185 190 } 186 191 }
Note: See TracChangeset
for help on using the changeset viewer.