aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools/src/percept_profile.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-02-03 09:51:19 +0100
committerRickard Green <[email protected]>2015-03-20 15:28:53 +0100
commit469e8f285f39218dfe0800b4df1c91739267c23c (patch)
tree5cc705d18b7cd5f94bda74f7ac7f3d9dcc656a58 /lib/runtime_tools/src/percept_profile.erl
parent9cf2be0481f26e3251fdb9de0a5d5901f4faee83 (diff)
downloadotp-469e8f285f39218dfe0800b4df1c91739267c23c.tar.gz
otp-469e8f285f39218dfe0800b4df1c91739267c23c.tar.bz2
otp-469e8f285f39218dfe0800b4df1c91739267c23c.zip
Replace usage of erlang:now() with usage of new API
Diffstat (limited to 'lib/runtime_tools/src/percept_profile.erl')
-rw-r--r--lib/runtime_tools/src/percept_profile.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/runtime_tools/src/percept_profile.erl b/lib/runtime_tools/src/percept_profile.erl
index cdc7a0fca1..dfadb21aa8 100644
--- a/lib/runtime_tools/src/percept_profile.erl
+++ b/lib/runtime_tools/src/percept_profile.erl
@@ -119,7 +119,7 @@ stop() ->
undefined ->
{error, not_started};
Port ->
- erlang:port_command(Port, erlang:term_to_binary({profile_stop, erlang:now()})),
+ erlang:port_command(Port, erlang:term_to_binary({profile_stop, erlang:timestamp()})),
%% trace delivered?
erlang:port_close(Port),
ok
@@ -139,7 +139,7 @@ profile_to_file(Filename, Opts) ->
erlang:system_flag(multi_scheduling, block),
Port = (dbg:trace_port(file, Filename))(),
% Send start time
- erlang:port_command(Port, erlang:term_to_binary({profile_start, erlang:now()})),
+ erlang:port_command(Port, erlang:term_to_binary({profile_start, erlang:timestamp()})),
erlang:system_flag(multi_scheduling, unblock),
%% Register Port