forked from OSchip/llvm-project
import fix and plot multiple lines at once
llvm-svn: 21596
This commit is contained in:
parent
438225a8cb
commit
3b63291fc1
|
@ -23,7 +23,7 @@ while($d = <>)
|
|||
if (18 == scalar split " ", $d)
|
||||
{
|
||||
($day, $mon, $year, $prog, $gccas, $bc, $llccompile, $llcbetacompile, $jitcompile,
|
||||
$mc, $gcc, $cbe, $llc, $llcbeta, $jit, $foo1, $foo2, $foo3) = split / /, $d;
|
||||
$mc, $gcc, $cbe, $llc, $llcbeta, $jit, $foo1, $foo2, $foo3) = split " ", $d;
|
||||
if ($gccas =~ /\d+/)
|
||||
{
|
||||
$dbh->do("INSERT INTO Tests (NAME, RUN, TEST, VALUE) VALUES
|
||||
|
|
|
@ -14,15 +14,27 @@ $connectionInfo="dbi:mysql:$db;$host";
|
|||
# make connection to database
|
||||
$dbh = DBI->connect($connectionInfo,$userid,$passwd) or die DBI->errstr;
|
||||
|
||||
$prog = shift @ARGV;
|
||||
$test = shift @ARGV;
|
||||
|
||||
$count = @ARGV / 2;
|
||||
|
||||
print "set xdata time\n";
|
||||
print 'set timefmt "%Y-%m-%d"';
|
||||
print "\nplot '-' using 1:2 with lines \n";
|
||||
print "\nplot";
|
||||
for ($iter = 0; $iter < $count; $iter++) {
|
||||
if ($iter)
|
||||
{ print ","; }
|
||||
print " '-' using 1:2 with lines";
|
||||
}
|
||||
|
||||
print "\n";
|
||||
|
||||
for ($iter = 0; $iter < $count; $iter++) {
|
||||
|
||||
$prog = shift @ARGV;
|
||||
$test = shift @ARGV;
|
||||
|
||||
$query = "Select RUN, VALUE from Tests where TEST = '$test' AND NAME = '$prog' ORDER BY RUN";
|
||||
#print $query;
|
||||
#print "\n$query\n";
|
||||
|
||||
my $sth = $dbh->prepare( $query) || die "Can't prepare statement: $DBI::errstr";;
|
||||
|
||||
|
@ -34,6 +46,8 @@ while(($da,$v) = $sth->fetchrow_array)
|
|||
}
|
||||
|
||||
print "e\n";
|
||||
}
|
||||
|
||||
|
||||
# disconnect from database
|
||||
$dbh->disconnect;
|
||||
|
|
Loading…
Reference in New Issue