Skip to content

Instantly share code, notes, and snippets.

@Ajwah
Created July 23, 2020 23:34
Show Gist options
  • Select an option

  • Save Ajwah/f9fc3a07d636be365c727c1ad09f35b7 to your computer and use it in GitHub Desktop.

Select an option

Save Ajwah/f9fc3a07d636be365c727c1ad09f35b7 to your computer and use it in GitHub Desktop.

Revisions

  1. Ajwah created this gist Jul 23, 2020.
    17 changes: 17 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    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