Last active
January 31, 2017 22:34
-
-
Save bokner/9384825dbb4004b40da68e9af90e8ae9 to your computer and use it in GitHub Desktop.
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
## 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