Skip to content

Commit

Permalink
Have galsim -p make .pstats files for the sub-processes too.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmjarvis committed Oct 12, 2023
1 parent 9c8c489 commit 11f3e00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions galsim/config/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ def worker(task_queue, results_queue, config, logger, initializers, initargs):
logger.debug('%s: Received STOP', proc)
if pr is not None:
pr.disable()
pr.dump_stats(config.get('root', 'galsim') + '_' + str(proc) + '.pstats')
s = StringIO()
sortby = 'time' # Note: This is now called tottime, but time seems to be a valid
# alias for this that is backwards compatible to older versions
Expand Down

0 comments on commit 11f3e00

Please sign in to comment.