SamSaffron / flamegraph

Flamegraph profiling support for Ruby 2.0
MIT License
382 stars 36 forks source link

Generate a flame graph for a post request #13

Open hraynaud opened 9 years ago

hraynaud commented 9 years ago

Hi I was wondering if it was possible to generate the flamegraph on a post request?.

SamSaffron commented 9 years ago

we should add a way of triggering this in rack mini profiler its mainly a UI problem, you can do this manually by writing middleware that detects the request and then generates a graph to a file.

On Thu, Jul 9, 2015 at 6:59 AM, Herby Raynaud notifications@github.com wrote:

Hi I was wondering if it was possible to generate the flamegraph on a post request?.

— Reply to this email directly or view it on GitHub https://github.com/SamSaffron/flamegraph/issues/13.

hraynaud commented 9 years ago

Hi Sam thanks for the quick response. If you think it's not a huge undertaking I'm happy to take a crack at it if you can point me in the right direction.

SamSaffron commented 9 years ago

first step is a sample on how to do this in rack middleware that you can add to a samples dir in flamegraph, you familiar with writing and inserting rack middleware?

On Thu, Jul 9, 2015 at 10:30 AM, Herby Raynaud notifications@github.com wrote:

Hi Sam thanks for the quick response. If you think it's not a huge undertaking I'm happy to take a crack at it if you can point me in the right direction.

— Reply to this email directly or view it on GitHub https://github.com/SamSaffron/flamegraph/issues/13#issuecomment-119770163 .

hraynaud commented 9 years ago

Yes I am. Ok let me see what I can put together over the weekend. Thanks