Skip to content
kellymclaughlin edited this page Jan 17, 2013 · 3 revisions

DTrace Scripts

One-liners

  • Trace user object requests
dtrace -qn 'erlang<RCS_PID_HERE>:::user_trace* /arg2 == 703/ {printf("pid %s: mod %s op %s: user %s bucket/file %s\n", copyinstr(arg0), copyinstr(arg6), copyinstr(arg7), copyinstr(arg8), copyinstr(arg9));}'
  • Trace webmachine resource execution
dtrace -qn 'erlang<RCS_PID_HERE>:::user_trace* /arg2 == 705/ {printf("pid %s: %s:%s\n", copyinstr(arg0), copyinstr(arg6), copyinstr(arg7));}'