Skip to content

Fix issues with flame-it. #4290

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

Merged
merged 1 commit into from
Nov 24, 2022
Merged

Fix issues with flame-it. #4290

merged 1 commit into from
Nov 24, 2022

Conversation

DimitrisJim
Copy link
Member

Running flame it works now as described in the profiling section:

echo "print('hello!')" >> script.py
cargo run --release --features flame-it script.py

or:

cargo run --release --features flame-it -- -c "print('hello world')"

to generate the flamescope (by default) which can be uploaded to speedscope.

ref #4289

@DimitrisJim DimitrisJim force-pushed the flame_it branch 2 times, most recently from 6087430 to ab50bed Compare November 23, 2022 16:54
}

#[cfg(feature = "flame-it")]
fn write_profile(settings: &Settings) -> Result<(), Box<dyn std::error::Error>> {
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved this further down, right above the tests so it doesn't obstruct the rest of the code.

@youknowone youknowone merged commit 3660ac2 into RustPython:main Nov 24, 2022
@DimitrisJim DimitrisJim deleted the flame_it branch November 24, 2022 11:23
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