Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117993
b: refs/heads/master
c: 2a813f8
h: refs/heads/master
i:
  117991: 451ff52
v: v3
  • Loading branch information
Alan Jenkins authored and Ingo Molnar committed Oct 22, 2008
1 parent dfe5f2f commit 5d8ad6d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17d80fd07d35ae1d231b3378ee4f00ace54f9d31
refs/heads/master: 2a813f8cd8ce91d588a595c5709502dece3af289
15 changes: 10 additions & 5 deletions trunk/scripts/bootgraph.pl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
# dmesg | perl scripts/bootgraph.pl > output.svg
#

my %start, %end;
use strict;

my %start;
my %end;
my $done = 0;
my $maxtime = 0;
my $firsttime = 100;
Expand Down Expand Up @@ -105,12 +108,14 @@
my $stylecounter = 0;
my %rows;
my $rowscount = 1;
my $key;
my $value;
while (($key,$value) = each %start) {
my $duration = $end{$key} - $start{$key};

if ($duration >= $threshold) {
my $s, $s2, $e, $y;
$pid = $pids{$key};
my ($s, $s2, $e, $w, $y, $y2, $style);
my $pid = $pids{$key};

if (!defined($rows{$pid})) {
$rows{$pid} = $rowscount;
Expand Down Expand Up @@ -140,9 +145,9 @@
my $time = $firsttime;
my $step = ($maxtime - $firsttime) / 15;
while ($time < $maxtime) {
my $s2 = ($time - $firsttime) * $mult;
my $s3 = ($time - $firsttime) * $mult;
my $tm = int($time * 100) / 100.0;
print "<text transform=\"translate($s2,89) rotate(90)\">$tm</text>\n";
print "<text transform=\"translate($s3,89) rotate(90)\">$tm</text>\n";
$time = $time + $step;
}

Expand Down

0 comments on commit 5d8ad6d

Please sign in to comment.