REGRESSION(r180595): same-callee profiling no longer works
[WebKit-https.git] / Tools / Scripts / webkitpy / benchmark_runner / benchmark_builder / jetstream_benchmark_builder.py
1 #!/usr/bin/env python
2
3 import logging
4 import os
5 import subprocess
6
7 from generic_benchmark_builder import GenericBenchmarkBuilder
8
9
10 _log = logging.getLogger(__name__)
11
12
13 class JetStreamBenchmarkBuilder(GenericBenchmarkBuilder):
14
15     def prepare(self, benchmarkPath, patch):
16         super(self.__class__, self)._copyBenchmarkToTempDir(benchmarkPath)
17         self._runCreateScript()
18         return super(self.__class__, self)._applyPatch(patch)
19
20     def _runCreateScript(self):
21         oldWorkingDirectory = os.getcwd()
22         os.chdir(self.dest)
23         _log.debug(self.dest)
24         errorCode = subprocess.call(['ruby', 'create.rb'])
25         os.chdir(oldWorkingDirectory)
26         if errorCode:
27             _log.error('Cannot create JetStream Benchmark')