Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: pyinstrument for profiling api requests #6411

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

prabinoid
Copy link
Contributor

@prabinoid prabinoid commented May 6, 2024

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation
  • πŸ§‘β€πŸ’» Refactor
  • βœ… Test
  • πŸ€– Build or CI
  • ❓ Other (please specify)

Related Issue

Issue #6292

Describe this PR

Adds pyinstrument to the existing setup, so we can profile all the api requests and their execution time.
Works when params pyinstrument=True is added to api url endpoint.

Screenshots

http://127.0.0.1:8001/api/v2/projects/?action=any&omitMapResults=false&pyinstrument=True

Screenshot 2024-05-06 at 17 45 35

Review Guide

Add param pyinstrument=True to api endpoint.

Checklist before requesting a review

Copy link

sonarcloud bot commented May 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Member

@dakotabenjamin dakotabenjamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants