Skip to content

Commit

Permalink
Changed profile report names running under gunicorn process.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimleroyer committed Oct 16, 2024
1 parent e0b1a6a commit 0589d60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gunicorn_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def on_exit(server):
# Dump profiling results to a file
profiler.dump_stats("profile_results.prof")
# Analyze profiling results
with open("profile_report.txt", "w") as f:
stats = pstats.Stats("profile_results.prof", stream=f)
with open("profile_report-gcrn-nr8xx.txt", "w") as f:
stats = pstats.Stats("profile_results-gcrn-nr8xx.prof", stream=f)
stats.sort_stats(SortKey.CUMULATIVE)
stats.print_stats()

Expand Down

0 comments on commit 0589d60

Please sign in to comment.