Skip to content

Instantly share code, notes, and snippets.

@tlvenn
Created February 6, 2017 02:07
Show Gist options
  • Save tlvenn/128c513c2b36edc784dd8383217250fd to your computer and use it in GitHub Desktop.
Save tlvenn/128c513c2b36edc784dd8383217250fd to your computer and use it in GitHub Desktop.
Trace phase timings in Absinthe
:dbg.tracer()
:dbg.p(:all, [:call, :arity, :timestamp])
:dbg.tpl(Absinthe.Pipeline, :run_phase, 3,
[{[[{:"$1",:_}|:_],:_,:_],[],[{:message,:"$1"}]},
{[[:"$1"|:_],:_,:_],[],[{:message,:"$1"}]}])
@tlvenn
Copy link
Author

tlvenn commented Feb 6, 2017

To turn off the tracing:
:dbg.stop_clear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment