aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools/src/percept_profile.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-05-10 15:07:54 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-05-12 13:40:10 +0200
commit5f312eab94a4477a36637f9594ae6da9b8b2a6aa (patch)
tree0a08d287e185e6a9c0eccc7a89950b92c9ae277f /lib/runtime_tools/src/percept_profile.erl
parent715876f5e6d40bc75ad8f3e6c4c70249aea0fc66 (diff)
downloadotp-5f312eab94a4477a36637f9594ae6da9b8b2a6aa.tar.gz
otp-5f312eab94a4477a36637f9594ae6da9b8b2a6aa.tar.bz2
otp-5f312eab94a4477a36637f9594ae6da9b8b2a6aa.zip
runtime_tools: Fix unmatched return warnings
Diffstat (limited to 'lib/runtime_tools/src/percept_profile.erl')
-rw-r--r--lib/runtime_tools/src/percept_profile.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/runtime_tools/src/percept_profile.erl b/lib/runtime_tools/src/percept_profile.erl
index ceec4d3b89..1e8e913b80 100644
--- a/lib/runtime_tools/src/percept_profile.erl
+++ b/lib/runtime_tools/src/percept_profile.erl
@@ -87,7 +87,7 @@ start(Filename, Options) ->
start(Filename, {Module, Function, Args}, Options) ->
case whereis(percept_port) of
undefined ->
- profile_to_file(Filename, Options),
+ {ok, _} = profile_to_file(Filename, Options),
erlang:apply(Module, Function, Args),
stop();
Port ->
@@ -113,7 +113,7 @@ deliver_all_trace() ->
-spec stop() -> 'ok' | {'error', 'not_started'}.
stop() ->
- erlang:system_profile(undefined, [runnable_ports, runnable_procs]),
+ _ = erlang:system_profile(undefined, [runnable_ports, runnable_procs]),
erlang:trace(all, false, [procs, ports, timestamp]),
deliver_all_trace(),
case whereis(percept_port) of
@@ -158,7 +158,8 @@ set_tracer(Port, Opts) ->
{TOpts, POpts} = parse_profile_options(Opts),
% Setup profiling and tracing
erlang:trace(all, true, [{tracer, Port}, timestamp | TOpts]),
- erlang:system_profile(Port, POpts).
+ _ = erlang:system_profile(Port, POpts),
+ ok.
%% parse_profile_options