Created
July 23, 2020 23:34
-
-
Save Ajwah/f9fc3a07d636be365c727c1ad09f35b7 to your computer and use it in GitHub Desktop.
fprof
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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