Esempio n. 1
0
 def merge(cls, gpuview, file, started, wait, args=None):
     xperf = os.path.normpath(os.path.join(os.path.dirname(gpuview), '..', 'xperf'))
     if wait:
         cmd = '"%s" -merge Merged.etl IntelSEAPI.etl "%s"' % (xperf, os.path.basename(file))
         (out, err) = Collector.execute(cmd, cwd=started)
         if err and (os.path.basename(file) not in err):
             print err
         relog_etl(os.path.join(started, os.path.basename(file)), file)
         shutil.rmtree(started)
     else:
         cmd = 'start "GPUView merge" /MIN /LOW "%s" "%s" gpuview "%s" "%s"' % (sys.executable, os.path.realpath(__file__), file, started)
         cls.log(cmd)
         subprocess.Popen(cmd, shell=True, stdin=None, stdout=None, stderr=None, creationflags=0x00000008, env=sea.prepare_environ(args))  # DETACHED_PROCESS
Esempio n. 2
0
 def merge(cls, gpuview, file, started, wait, args=None):
     xperf = os.path.normpath(os.path.join(os.path.dirname(gpuview), '..', 'xperf'))
     if wait:
         cmd = '"%s" -merge Merged.etl IntelSEAPI.etl "%s"' % (xperf, os.path.basename(file))
         (out, err) = Collector.execute(cmd, cwd=started)
         if err and (os.path.basename(file) not in err):
             print err
         relog_etl(os.path.join(started, os.path.basename(file)), file)
         shutil.rmtree(started)
     else:
         cmd = 'start "GPUView merge" /MIN /LOW "%s" "%s" gpuview "%s" "%s"' % (sys.executable, os.path.realpath(__file__), file, started)
         cls.log(cmd)
         subprocess.Popen(cmd, shell=True, stdin=None, stdout=None, stderr=None, creationflags=0x00000008, env=sea.prepare_environ(args))  # DETACHED_PROCESS