Popularity
1.6
Growing
Activity
0.0
Stable
4
4
0

Monthly Downloads: 2
Programming language: Elixir
License: MIT License
Latest version: v0.0.1

plug_fprof alternatives and similar packages

Based on the "Framework Components" category.
Alternatively, view plug_fprof alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of plug_fprof or a related project?

Add another 'Framework Components' Package

README

PlugFprof

A Plug that adds fprof tracing to a web app.

Usage

Add to your dependencies in mix.exs:

  defp deps do
    [{:plug_fprof, "~> 0.0.1"}]
  end

Then use it from within your plug/pheonix router:

defmodule MyRouter do
  use Plug.Router
  use PlugFprof


end

FProf will write it's tracing data into fprof.trace. You can profile & analyze this from iex:

iex(1)> :fprof.profile()
Reading trace data...
.........
End of trace!
:ok
iex(2)> :fprof.analyse([dest: 'analysis.txt', cols: 120, callers: true, sort:
:own, totals: true, details: true])
Processing data...
Creating output...
Done!
:ok

See the fprof documentation for more details.