I am not writing a game, but numerical code, such that algorithms have loops with some interesting parts inside the loop and some outside.
So I want a span before the loop starts, a span on the whole loop, inside the loop each iteration is a frame, and more spans inside the loop, partitioning each frame.
Currently this results in errors like thread 'logisticregression3' panicked at 'flame::end("SublinearAveragingSolver") called without a currently running span!', /home/danielv/.cargo/registry/src/github.com-88ac128001ac3a9a/flame-0.1.5/src/lib.rs:257
(presumably because my next_frame inside the loop is hiding the loop scope flame::start("Sublinear...");
Does this make sense?
I am not writing a game, but numerical code, such that algorithms have loops with some interesting parts inside the loop and some outside.
So I want a span before the loop starts, a span on the whole loop, inside the loop each iteration is a frame, and more spans inside the loop, partitioning each frame.
Currently this results in errors like
thread 'logisticregression3' panicked at 'flame::end("SublinearAveragingSolver") called without a currently running span!', /home/danielv/.cargo/registry/src/github.com-88ac128001ac3a9a/flame-0.1.5/src/lib.rs:257(presumably because my next_frame inside the loop is hiding the loop scope flame::start("Sublinear...");
Does this make sense?