Stratus3D / eflambe

A tool for rapid profiling of Erlang and Elixir applications
Apache License 2.0
112 stars 15 forks source link

Document common usage patterns #12

Closed Stratus3D closed 1 year ago

Stratus3D commented 2 years ago

It occurred to me today that a set of usage patterns or a "cookbook" for eflambe might be useful.

For example, today I wanted to profile a whole Phoenix pipeline. This did the trick:

:eflambe.capture({Phoenix.Endpoint.Cowboy2Handler, :init, 2}, 1, [open: :speedscope])
Zabrane commented 2 years ago

@Stratus3D can't agree more on the {{Cookbook}} usefulness. I will certainly contribute some real examples.

Stratus3D commented 2 years ago

Awesome! Thanks. Feel free to use this issue document them as you come across them. I'll eventually extract them out into a document somewhere.

Stratus3D commented 2 years ago

@TheFirstAvenger and anyone else, I'd love to get document some of the common patterns you use with eflambe!

TheFirstAvenger commented 2 years ago

@Stratus3D We use :cowboy_hander.execute/2 in Flame On

Stratus3D commented 1 year ago

Closing for now as this isn't something I'm planning on documenting right now. I still welcome comments documenting common usage patterns if anyone who comes across this has something more to share!