diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-05-13 13:28:49 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-05-13 13:28:49 +0200 |
commit | bab87d0bf1dc89953caec354648c6c8db8737e92 (patch) | |
tree | 6d7479763672b8e4a7177bb04dec0f1eb123a6a0 /lib/runtime_tools/src/percept_profile.erl | |
parent | 9addbee447442a08430557c20d24c961df224926 (diff) | |
parent | 5f312eab94a4477a36637f9594ae6da9b8b2a6aa (diff) | |
download | otp-bab87d0bf1dc89953caec354648c6c8db8737e92.tar.gz otp-bab87d0bf1dc89953caec354648c6c8db8737e92.tar.bz2 otp-bab87d0bf1dc89953caec354648c6c8db8737e92.zip |
Merge branch 'egil/runtime_tools/fix-unmatched_return/OTP-13595'
* egil/runtime_tools/fix-unmatched_return/OTP-13595:
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.erl | 7 |
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 |