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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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