Skip to content

Profiling NewRelic 8.10.0#2316

Closed
jimleroyer wants to merge 26 commits intomainfrom
fix/slow-new-relic-8.10.0
Closed

Profiling NewRelic 8.10.0#2316
jimleroyer wants to merge 26 commits intomainfrom
fix/slow-new-relic-8.10.0

Conversation

@jimleroyer
Copy link
Copy Markdown
Member

@jimleroyer jimleroyer commented Oct 2, 2024

DO NOT MERGE INTO STAGING

Summary | Résumé

This adds timer and profiler around the application's initialization for capturing metrics around New Relic startup.

Related Issues | Cartes liées

Test instructions | Instructions pour tester la modification

Deploy to the dev environment, look at the startup logs and grab the report in the application running folder named profile_report.txt.

Release Instructions | Instructions pour le déploiement

Release to the dev environment, not to staging. This will affect the workers # if merged.

Reviewer checklist | Liste de vérification du réviseur

  • This PR does not break existing functionality.
  • This PR does not violate GCNotify's privacy policies.
  • This PR does not raise new security concerns. Refer to our GC Notify Risk Register document on our Google drive.
  • This PR does not significantly alter performance.
  • Additional required documentation resulting of these changes is covered (such as the README, setup instructions, a related ADR or the technical documentation).

⚠ If boxes cannot be checked off before merging the PR, they should be moved to the "Release Instructions" section with appropriate steps required to verify before release. For example, changes to celery code may require tests on staging to verify that performance has not been affected.

@jimleroyer jimleroyer self-assigned this Oct 2, 2024
Comment thread application.py
if enable_profiling:
print("Profiling enabled")
import cProfile
import pstats

Check notice

Code scanning / CodeQL

Module is imported with 'import' and 'import from'

Module 'pstats' is imported with both 'import' and 'import from'.
@jimleroyer jimleroyer marked this pull request as draft November 13, 2024 16:05
@jimleroyer
Copy link
Copy Markdown
Member Author

Closing this pull request as this was supplanted by:

@jimleroyer jimleroyer closed this Nov 26, 2024
@jimleroyer jimleroyer deleted the fix/slow-new-relic-8.10.0 branch November 26, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants