Allow changing the size each object shown

asm
Hamish Coleman 8 years ago
parent a66d9e0d68
commit 50c2c80d29

@ -355,6 +355,18 @@ sub output_dot {
push @ports, sprintf("<p%i>%s",$offset,$valname);
}
}
# what is the maximum number of rows per object?
# FIXME - expose this variable on the commandline
my $want_rows = 1;
if ($want_rows < 2) {
@ports = $ports[0];
} elsif (scalar(@ports) > $want_rows) {
@ports = @ports[0..$want_rows-2];
push @ports, sprintf("...size=0x%x",$object->{size});
}
printf(" %s [label=\"%s\"]; // %i\n",
$name,
join("|",@ports),

Loading…
Cancel
Save