Skip to content

Instantly share code, notes, and snippets.

@Ajwah
Created July 23, 2020 23:34
Show Gist options
  • Save Ajwah/f9fc3a07d636be365c727c1ad09f35b7 to your computer and use it in GitHub Desktop.
Save Ajwah/f9fc3a07d636be365c727c1ad09f35b7 to your computer and use it in GitHub Desktop.
fprof
def run_all(path, dest) do
:fprof.trace([:start, verbose: true, procs: :all])
"#{path}/*.feature"
|> Path.wildcard()
|> Enum.map(&execute/1)
:fprof.trace(:stop)
:fprof.profile()
:fprof.analyse(totals: false, dest: '#{dest}.analysis')
end
def execute(path) do
[path: path]
|> prepare
|> run
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment