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

Failing to run on binaries created by bevy #1

Open
TotalKrill opened this issue Feb 15, 2023 · 1 comment
Open

Failing to run on binaries created by bevy #1

TotalKrill opened this issue Feb 15, 2023 · 1 comment

Comments

@TotalKrill
Copy link

Hello, wrote on the reddit post as well.

Reproduce

Trying to run this on bevy crates fails, i have not tested it very thoroughly, but to reproduce you could:

git clone https://github.com/bevyengine/bevy.git
cd bevy
cargo build --example 3d_scene
allocscope-trace target/debug/example/3d_scene

expected behaviour

A 3d scene with a box should show up, standing still, nothing else, quitting the software will stop the process, and the atrace can be inspected.

actual behaviour

the 3D scene will not show up, and allocscope-trace will say and show nothing. ctrl+c will quit it though
running it for a while will create an atrace file though, and that can be inspected ( sometimes crash, but not easily reproduced, said something about higher number? dont remember )

@matt-kimball
Copy link
Owner

The issue seems to be that allocscope is slowing down the traced process so much that it is not very usable. I do get a window after several minutes, and if I press ctrl+c to terminate the trace, I get an .atrace which does show Bevy things happening.

I intend to rework the mechanism of tracing to speed things in the near future. I expect that tracing a Bevy process will improve when that work is complete.

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

No branches or pull requests

2 participants