summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-05-20 17:50:51 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-05-20 17:50:51 +0000
commit0abbc1336dffd4ce88a49e62f54c65ba47483050 (patch)
treef8242dc111b9a067ee77349058c8bb2705970c50
parente5dc5c9c7482bf5000a5ba7c3ab8b8319879ab10 (diff)
downloadbcm5719-llvm-0abbc1336dffd4ce88a49e62f54c65ba47483050.tar.gz
bcm5719-llvm-0abbc1336dffd4ce88a49e62f54c65ba47483050.zip
now with a legend, and multiple lines work.
llvm-svn: 22153
-rwxr-xr-xllvm/utils/cgiplotNLT.pl3
-rwxr-xr-xllvm/utils/webNLT.pl13
2 files changed, 10 insertions, 6 deletions
diff --git a/llvm/utils/cgiplotNLT.pl b/llvm/utils/cgiplotNLT.pl
index d9b61d813f9..0360e4120d8 100755
--- a/llvm/utils/cgiplotNLT.pl
+++ b/llvm/utils/cgiplotNLT.pl
@@ -27,6 +27,7 @@ $| = 1;
print "Content-type: image/png", "\n\n";
open CMDSTREAM, "|gnuplot";
+#open CMDSTREAM, "|echo";
print CMDSTREAM "set terminal png\n";
print CMDSTREAM "set output\n";
@@ -36,7 +37,7 @@ print CMDSTREAM "\nplot";
for ($iter = 0; $iter < $count; $iter++) {
if ($iter)
{ print CMDSTREAM ","; }
- print CMDSTREAM " '-' using 1:2 with lines";
+ print CMDSTREAM " '-' using 1:2 title \"" . $q->param('t' . $iter) . "," . $q->param('n' . $iter) . "\"with lines";
}
print CMDSTREAM "\n";
diff --git a/llvm/utils/webNLT.pl b/llvm/utils/webNLT.pl
index 7f55b60187c..fb29fd292e2 100755
--- a/llvm/utils/webNLT.pl
+++ b/llvm/utils/webNLT.pl
@@ -61,15 +61,18 @@ else
{
my @names = $q->param('name');
my @tests = $q->param('test');
+ print "<P>";
+ print join "<BR>", @names;
+ print "<P>";
+ print join "<BR>", @tests;
+ print "<P>";
$str = "pwd=" . $q->param('pwd');
$count = 0;
- while (@names)
+ foreach $n (@names)
{
- $n = pop @names;
- while (@tests)
+ foreach $t (@tests)
{
- $t = pop @tests;
- $str .= "&t$count=$t&n$count=$n";
+ $str = "$str&t$count=$t&n$count=$n";
$count++;
}
}
OpenPOWER on IntegriCloud