Skip to content

Capture cpu profile for keynote bench in nightly job#5163

Open
joshua-spacetime wants to merge 1 commit into
masterfrom
joshua/samply-keynote-bench
Open

Capture cpu profile for keynote bench in nightly job#5163
joshua-spacetime wants to merge 1 commit into
masterfrom
joshua/samply-keynote-bench

Conversation

@joshua-spacetime
Copy link
Copy Markdown
Contributor

Description of Changes

Also capture a cpu profile on a keynote bench job failure.

API and ABI breaking changes

N/A

Expected complexity level and risk

2

Testing

  • Profile artifacts are generated and stored by the CI job

Comment thread .github/workflows/ci.yml
run: pnpm build
working-directory: crates/bindings-typescript

- name: Install samply
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

TODO: This should be installed at the infra level - not by the test every time.

Comment thread .github/workflows/ci.yml
run: |
mkdir -p "$KEYNOTE_PROFILE_DIR"
set +e
samply record \
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

TODO: Need to set /proc/sys/kernel/perf_event_paranoid to 1 in the runner in order to give samply access to kernel-level perf events.

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.

1 participant