4 """ A helper function to set perfmon flags from runArgs."""
6 if hasattr(runArgs,
'perfmon')
and runArgs.perfmon !=
'none':
7 if runArgs.perfmon ==
'fastmonmt':
8 flags.PerfMon.doFastMonMT =
True
9 elif runArgs.perfmon ==
'fullmonmt':
10 flags.PerfMon.doFullMonMT =
True
12 raise RuntimeError(f
"Unknown perfmon type: {runArgs.perfmon}")
15 flags.PerfMon.OutputJSON = f
"perfmonmt_{runArgs.trfSubstepName}.json"
16 except AttributeError: