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 a puffin_http::Server and keep it alive until the test is done. It calls puffin::GlobalProfiler::lock().new_frame(); when created and dropped. I would like to use something like puffin::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.
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.