diff options
author | Anders Svensson <[email protected]> | 2017-08-18 11:00:57 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2017-08-18 11:00:57 +0200 |
commit | 770454f0a32fbc0714c6762ed3e4d761b799814f (patch) | |
tree | dc5613f518bc50e768fb03336cdc5b96685bb58f /lib/diameter/test/diameter_util.erl | |
parent | 91318cd5576a3283cd0dbc263e846fad55010f89 (diff) | |
parent | f392006644991074d2c4d5055773409c5e0503d7 (diff) | |
download | otp-770454f0a32fbc0714c6762ed3e4d761b799814f.tar.gz otp-770454f0a32fbc0714c6762ed3e4d761b799814f.tar.bz2 otp-770454f0a32fbc0714c6762ed3e4d761b799814f.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/diameter/test/diameter_util.erl')
-rw-r--r-- | lib/diameter/test/diameter_util.erl | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/diameter/test/diameter_util.erl b/lib/diameter/test/diameter_util.erl index 03f79096ac..d249b0e4fa 100644 --- a/lib/diameter/test/diameter_util.erl +++ b/lib/diameter/test/diameter_util.erl @@ -32,7 +32,8 @@ foldl/3, scramble/1, unique_string/0, - have_sctp/0]). + have_sctp/0, + eprof/1]). %% diameter-specific -export([lport/2, @@ -48,6 +49,16 @@ -define(L, atom_to_list). +%% --------------------------------------------------------------------------- + +eprof(start) -> + eprof:start(), + eprof:start_profiling([self()]); + +eprof(stop) -> + eprof:stop_profiling(), + eprof:analyze(), + eprof:stop(). %% --------------------------------------------------------------------------- %% name/2 |