parameters: (self, filename, numFuncs, funcsCalled, totalCalls)
docstring: Echo some comments and invoke both versions of toy
docstring_summary: Echo some comments and invoke both versions of toy
docstring_tokens: Echo some comments and invoke both versions of toy
function: def writeTimingCall(self, filename, numFuncs, funcsCalled, totalCalls):
          """Echo some comments and invoke both versions of toy"""
          rootname = filename
          if '.' in filename:
              rootname = filename[:filename.rfind('.')]
          self.shfile.write("echo \"%s: Calls %d of %d functions, %d total\" >> %s\n" % (filename, funcsCalled, numFuncs, totalCalls, self.timeFile))
          self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
          self.shfile.write("echo \"With MCJIT\" >> %s\n" % self.timeFile)
          self.shfile.write("/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tmax set: %M kb\"")
          self.shfile.write(" -o %s -a " % self.timeFile)
          self.shfile.write("./toy-mcjit < %s > %s-mcjit.out 2> %s-mcjit.err\n" % (filename, rootname, rootname))
          self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
          self.shfile.write("echo \"With JIT\" >> %s\n" % self.timeFile)
          self.shfile.write("/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tmax set: %M kb\"")
          self.shfile.write(" -o %s -a " % self.timeFile)
          self.shfile.write("./toy-jit < %s > %s-jit.out 2> %s-jit.err\n" % (filename, rootname, rootname))
          self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
          self.shfile.write("echo \"\" >> %s\n" % self.timeFile)
function_tokens: def writeTimingCall ( self , filename , numFuncs , funcsCalled , totalCalls ) : rootname = filename if '.' in filename : rootname = filename [ : filename . rfind ( '.' ) ] self . shfile . write ( "echo \"%s: Calls %d of %d functions, %d total\" >> %s\n" % ( filename , funcsCalled , numFuncs , totalCalls , self . timeFile ) ) self . shfile . write ( "echo \"\" >> %s\n" % self . timeFile ) self . shfile . write ( "echo \"With MCJIT\" >> %s\n" % self . timeFile ) self . shfile . write ( "/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tmax set: %M kb\"" ) self . shfile . write ( " -o %s -a " % self . timeFile ) self . shfile . write ( "./toy-mcjit < %s > %s-mcjit.out 2> %s-mcjit.err\n" % ( filename , rootname , rootname ) ) self . shfile . write ( "echo \"\" >> %s\n" % self . timeFile ) self . shfile . write ( "echo \"With JIT\" >> %s\n" % self . timeFile ) self . shfile . write ( "/usr/bin/time -f \"Command %C\\n\\tuser time: %U s\\n\\tsytem time: %S s\\n\\tmax set: %M kb\"" ) self . shfile . write ( " -o %s -a " % self . timeFile ) self . shfile . write ( "./toy-jit < %s > %s-jit.out 2> %s-jit.err\n" % ( filename , rootname , rootname ) ) self . shfile . write ( "echo \"\" >> %s\n" % self . timeFile ) self . shfile . write ( "echo \"\" >> %s\n" % self . timeFile )