From bacafe0367cc00b10336f709fff5ba0835a697a6 Mon Sep 17 00:00:00 2001
From: Prakalp Srivastava <prakalps@gmail.com>
Date: Thu, 11 Jun 2015 10:34:46 -0500
Subject: [PATCH] Added calculation for Timer Wall time - IO to parboil scripts

---
 llvm/test/VISC/parboil/parboilParser.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/llvm/test/VISC/parboil/parboilParser.py b/llvm/test/VISC/parboil/parboilParser.py
index 980f6735a9..20e7604698 100755
--- a/llvm/test/VISC/parboil/parboilParser.py
+++ b/llvm/test/VISC/parboil/parboilParser.py
@@ -11,7 +11,7 @@ import matplotlib.pyplot as plt
 
 default_value = '0.0'
 num_figs = 0
- 
+
 # parse a csv file and create a dictionary holding all the data
 def parseCSVFile(filename):
   # open file
@@ -181,6 +181,7 @@ def printTimerDecomposition(csvDict, isVisc):
              ('Final', 'Output Pack'), 
              ('Parboil', 'Mem_Untrack'), 
              ('Parboil', 'Clear_Ctx'),
+             ('Final', 'Timer Wall - IO'),
              ('GenVISC_Timer', 'Timer Wall Time')]
   else: 
     timers =[('Final', 'Init_Ctx'),
@@ -203,6 +204,7 @@ def printTimerDecomposition(csvDict, isVisc):
              ('Final', 'Output_Pack'),
              ('Final', 'Mem_Untrack'),
              ('Final', 'Clear_Ctx'),
+             ('Final', 'Timer Wall - IO'),
              ('Final', 'Timer Wall Time')]
 
   line = "Category,"
@@ -252,7 +254,8 @@ def plotTimerDecomposition(csvDict, plotapp):
                 ('Final', 'Output Pack'), 
                 ('Parboil', 'Mem_Untrack'), 
                 ('Parboil', 'Clear_Ctx'),
-                ('GenVISC_Timer', 'Timer Wall Time')]
+                ('Final', 'Timer Wall - IO'),
+                ('Final', 'Timer Wall Time')]
   opencl_timers =[('Final', 'Init_Ctx'),
                   ('Final', 'Arg_Unpack'), 
                   ('Final', 'Copy_Scalar'), 
@@ -273,6 +276,7 @@ def plotTimerDecomposition(csvDict, plotapp):
                   ('Final', 'Output_Pack'),
                   ('Final', 'Mem_Untrack'),
                   ('Final', 'Clear_Ctx'),
+                  ('Final', 'Timer Wall - IO'),
                   ('Final', 'Timer Wall Time')]
 
   for app in apps:
-- 
GitLab