- Notifications
You must be signed in to change notification settings - Fork0
obmarg/plug_fprof
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Plug that adds fprof tracing to a web app.
Add to your dependencies inmix.exs
:
defpdepsdo[{:plug_fprof,"~> 0.0.1"}]end
Thenuse
it from within your plug/pheonix router:
defmoduleMyRouterdousePlug.RouterusePlugFprofend
FProf will write it's tracing data intofprof.trace
. You can profile &analyze this fromiex
:
iex(1)> :fprof.profile()Reading trace data............End of trace!:okiex(2)> :fprof.analyse([dest: 'analysis.txt', cols: 120, callers: true, sort::own, totals: true, details: true])Processing data...Creating output...Done!:ok
Seethe fprof documentation formore details.
About
An Elixir Plug for profiling code with fprof.
Resources
Stars
Watchers
Forks
Packages0
No packages published