llogiq / flame

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

add an `end_with(_, _)` function #9

Closed llogiq closed 8 years ago

llogiq commented 8 years ago

Rationale: We got some problems reported on flamer that the drop impls of span guards are sometimes optimized out. Also we probably don't need to care about panics (or want to record an unclosed span in that case which would not happen with start_guard(_)).

This fixes #8.

TyOverby commented 8 years ago

Looks like you're missing a semicolon. Could you also add a test or two?

llogiq commented 8 years ago

Done.

TyOverby commented 8 years ago

LGTM!