chore(profiling): avoid frequent lock acquire and release #33368
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: flask-overhead-profile | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- 'ddtrace/**' | |
- 'scripts/profiles/flask-simple/**' | |
- '.github/workflows/flask-overhead-profile.yml' | |
merge_group: | |
# Trigger jobs when PR is added to merge queue | |
types: [checks_requested] | |
jobs: | |
flask-overhead-profile: | |
runs-on: ubuntu-latest | |
env: | |
PREFIX: ${{ github.workspace }}/prefix | |
defaults: | |
run: | |
working-directory: ddtrace | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: ddtrace | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Setup | |
run: | | |
bash scripts/profiles/flask-simple/setup.sh ${PREFIX} | |
- name: Run | |
run: | | |
bash scripts/profiles/flask-simple/run.sh ${PREFIX} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: flask-overhead-profile | |
path: ${{ github.workspace }}/prefix/artifacts | |