Skip to content

Commit 16bbc35

Browse files
authored
Merge pull request swiftlang#72 from graydon/cperf-debug-opt-config
[run_cperf] Add debug-opt config, run multithreaded / multiprocess.
2 parents 4e19d5f + adfb92d commit 16bbc35

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: run_cperf

+6-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def main():
6767

6868
args = parse_args()
6969
instances = [NEW_INSTANCE, OLD_INSTANCE]
70-
configs = ['debug', 'wmo-onone', 'release']
70+
configs = ['debug', 'debug-opt', 'wmo-onone', 'release']
7171

7272
for instance in instances:
7373
workspace = get_workspace_for_instance(instance, args)
@@ -217,11 +217,14 @@ def get_stats_dir(instance, variant):
217217

218218

219219
def get_actual_config_and_flags(config, stats):
220-
flags = ("-j 1 -num-threads 1 -stats-output-dir '%s'" % stats)
221-
# Handle wmo-onone as a pseudo-config
220+
flags = ("-stats-output-dir '%s'" % stats)
221+
# Handle as a pseudo-configs
222222
if config == 'wmo-onone':
223223
flags += ' -wmo -Onone '
224224
config = 'release'
225+
elif config == 'debug-opt':
226+
flags += ' -O '
227+
config = 'debug'
225228
return (config, flags)
226229

227230

0 commit comments

Comments
 (0)