Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

An Elixir Plug for profiling code with fprof.

NotificationsYou must be signed in to change notification settings

obmarg/plug_fprof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Plug that adds fprof tracing to a web app.

Usage

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

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp