Skip to content

Instantly share code, notes, and snippets.

@bokner
Last active January 31, 2017 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bokner/9384825dbb4004b40da68e9af90e8ae9 to your computer and use it in GitHub Desktop.
Save bokner/9384825dbb4004b40da68e9af90e8ae9 to your computer and use it in GitHub Desktop.
## Commands to create lttng session/channel, start, stop and view results
### Create session 'test-0131' and channel 'ejabberd', specify the buffer size (4M)
lttng create test-0131
sudo lttng enable-channel ejabberd -u --subbuf-size=4M --session=test-0131
## Enable tracepoints (function_call and function_return)
sudo lttng enable-event -u org_erlang_dyntrace:function_return -c ejabberd
sudo lttng enable-event -u org_erlang_dyntrace:function_call -c ejabberd
# Start tracing when ready (the tracing on erlang side should already be started)
sudo lttng start
# Stop tracing and view results
sudo lttng stop
sudo lttng view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment