[llvm-commits] CVS: poolalloc/test/TEST.poolalloc.report

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 7 14:14:10 PST 2004



Changes in directory poolalloc/test:

TEST.poolalloc.report updated: 1.21 -> 1.22

---
Log message:

Tidy up the pa report substantially


---
Diffs of the changes:  (+26 -15)

Index: poolalloc/test/TEST.poolalloc.report
diff -u poolalloc/test/TEST.poolalloc.report:1.21 poolalloc/test/TEST.poolalloc.report:1.22
--- poolalloc/test/TEST.poolalloc.report:1.21	Sat Nov  6 23:24:22 2004
+++ poolalloc/test/TEST.poolalloc.report	Sun Nov  7 16:14:00 2004
@@ -8,6 +8,17 @@
 $SortCol = 0;
 $TrimRepeatedPrefix = 1;
 
+# FormatTime - Convert a time from 1m23.45 into 83.45
+sub FormatTime {
+  my $Time = shift;
+  if ($Time =~ m/([0-9]+)[m:]([0-9.]+)/) {
+    return sprintf("%7.3f", $1*60.0+$2);
+  }
+
+  return sprintf("%7.2f", $Time);
+}
+
+
 sub RuntimePercent {
   my ($Cols, $Col) = @_;
   if ($Cols->[$Col-1] ne "*" and $Cols->[3] ne "*" and
@@ -55,21 +66,21 @@
  ["LOC"   , 'LOC:\s*([0-9]+)'],
  [],
 # Times
- ["NormalTime",   'CBE-RUN-TIME-NORMAL: program\s*([.0-9m:]+)'],
-
- ["OnlyOHTime", 'CBE-RUN-TIME-ONLYOVERHEAD: program\s*([.0-9m:]+)'],
- ["OO run%", \&RuntimePercent],
-
- ["MallocReplTime", 'CBE-RUN-TIME-MALLOCREPL: program\s*([.0-9m:]+)'],
- ["MR run%", \&RuntimePercent],
-
- ["PoolAllocTime", 'CBE-RUN-TIME-POOLALLOC: program\s*([.0-9m:]+)'],
- ["PA run%", \&RuntimePercent],
-
- ["AP NumPools",          '([0-9]+).*Number of pools allocated'],
- ["AP Typesafe",          '([0-9]+).*Number of typesafe pools'],
- ["NumArgs",              '([0-9]+).*Number of function arguments added'],
-# ["Nonprofit",            '([0-9]+).*Number of DSNodes not profitable'],
+ ["NormalTime",     'CBE-RUN-TIME-NORMAL: program\s*([.0-9m:]+)', \&FormatTime],
+ [],
+ ["OnlyOHTime",     'CBE-RUN-TIME-ONLYOVERHEAD: program\s*([.0-9m:]+)', \&FormatTime],
+ ["OO run%",        \&RuntimePercent],
+ [],
+ ["ReplTime",       'CBE-RUN-TIME-MALLOCREPL: program\s*([.0-9m:]+)', \&FormatTime],
+ ["MR run%",        \&RuntimePercent],
+ [],
+ ["PA Time",        'CBE-RUN-TIME-POOLALLOC: program\s*([.0-9m:]+)', \&FormatTime],
+ ["PA run%",        \&RuntimePercent],
+ [],
+ ["NumPools",       '([0-9]+).*Number of pools allocated'],
+ ["Typesafe",       '([0-9]+).*Number of typesafe pools'],
+ ["NumArgs",        '([0-9]+).*Number of function arguments added'],
+#["Nonprofit",      '([0-9]+).*Number of DSNodes not profitable'],
  []
 );
 





More information about the llvm-commits mailing list