spack --profile: dump to stderr (#40209)

This commit is contained in:
Harmen Stoppels
2023-09-26 16:18:47 +02:00
committed by GitHub
parent 0e72ff4a0d
commit 5c25437c9f

View File

@@ -774,7 +774,7 @@ def _profile_wrapper(command, parser, args, unknown_args):
pr.disable() pr.disable()
# print out profile stats. # print out profile stats.
stats = pstats.Stats(pr) stats = pstats.Stats(pr, stream=sys.stderr)
stats.sort_stats(*sortby) stats.sort_stats(*sortby)
stats.print_stats(nlines) stats.print_stats(nlines)