generated from EmbarkStudios/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Profile unit tests #172
Labels
enhancement
New feature or request
Comments
We could add a helper to Something similar to this: https://github.com/rerun-io/rerun/blob/main/crates/re_tracing/src/server.rs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to use puffin to profile my tests but am having problems getting the viewer to catch the single frame it produces. It might be related to #85. I've had it somewhat working but that was a few versions of puffin ago.
My tests looks like this right now and I would be happy if something similar worked:
The function
start_puffin_server
is something I wrote to create apuffin_http::Server
and keep it alive until the test is done. It callspuffin::GlobalProfiler::lock().new_frame();
when created and dropped. I would like to use something likepuffin::profile_unit_test!();
instead. Writing to disk is an option but I would prefer if I can keep the viewer running and update automatically as I change the code and run the test again.The text was updated successfully, but these errors were encountered: