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

EXP: support running flamegraph code #493

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

EXP: support running flamegraph code #493

wants to merge 1 commit into from

Conversation

ctb
Copy link
Collaborator

@ctb ctb commented Nov 4, 2024

add debug symbols, force specific python version for wheel building.

To run flamegraph

create environment, build wheel, etc.

then (for Mac OS X, which requires sudo):

sudo flamegraph -o fastmultigather.svg -- python -m sourmash scripts fastmultig\
ather SRR606249.abundtrim.sig gtdb-rs207.genomic-reps.dna.k31.zip -c 1
sudo flamegraph -o fastgather.svg -- python -m sourmash scripts SRR606249.abund\
trim.sig gtdb-rs207.genomic-reps.dna.k31.zip -o xxx.csv -c 1

@luizirber
Copy link
Member

Have you tried py-spy? It also generates flamegraphs, and can resolve Python call stacks + native extensions properly:
https://github.com/benfred/py-spy?tab=readme-ov-file#record
https://github.com/benfred/py-spy?tab=readme-ov-file#can-py-spy-profile-native-extensions

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