llogiq / flame

An intrusive flamegraph profiling tool for rust.
Apache License 2.0
706 stars 30 forks source link

flame::end(repl) attempted to end end #39

Closed MasonRemaley closed 6 years ago

MasonRemaley commented 6 years ago

I'm running into an issue where when I call flame::start("repl") and then later flame::end("repl") from one of my functions, the end call results in this panic:

error: thread 'main' panicked at 'flame::end(repl) attempted to end end'

I don't ever call start/end with "end" as an argument that I know of, unless flamer is doing that for some reason. When I have a few minutes to kill I'm gonna go through my project and comment out all of the start/end calls until I find the minimal repro case, but I figured I'd post here in the meantime in case anyone else has any intuition about what would cause this.

MasonRemaley commented 6 years ago

I don't ever call start/end with "end" as an argument [...]

This turned out to be false--due to a copy paste error I was calling flame::start("end") and somehow missed it when searching my code for start("end"). Fixed that and now everything works as expected.

Sorry for the quick open/self-resolve, but thanks for the great library!

TyOverby commented 6 years ago

:+1: Glad you got things figured out!