aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_trace.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2015-12-10 10:58:33 +0100
committerLukas Larsson <[email protected]>2016-03-29 14:56:35 +0200
commit4a736966eba5398a22697db6ca67e1e3dd3cd0f2 (patch)
treefd94b504ca0f28abdebcedeea72018610a561a00 /erts/emulator/beam/erl_trace.c
parentcee5b753e8dbd294b2677f684c404d16dcfcd643 (diff)
downloadotp-4a736966eba5398a22697db6ca67e1e3dd3cd0f2.tar.gz
otp-4a736966eba5398a22697db6ca67e1e3dd3cd0f2.tar.bz2
otp-4a736966eba5398a22697db6ca67e1e3dd3cd0f2.zip
erts: Add enif_cpu/now_time and enif_make_unique_integer
Diffstat (limited to 'erts/emulator/beam/erl_trace.c')
-rw-r--r--erts/emulator/beam/erl_trace.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_trace.c b/erts/emulator/beam/erl_trace.c
index 41876b8c62..9033c1b75c 100644
--- a/erts/emulator/beam/erl_trace.c
+++ b/erts/emulator/beam/erl_trace.c
@@ -176,7 +176,7 @@ take_timestamp(ErtsTraceTimeStamp *tsp, int ts_type)
hsz += 3; /* 2-tuple */
raw_unique = erts_raw_get_unique_monotonic_integer();
tsp->u.monotonic.raw_unique = raw_unique;
- hsz += erts_raw_unique_monotonic_integer_heap_size(raw_unique);
+ hsz += erts_raw_unique_monotonic_integer_heap_size(raw_unique, 0);
}
return hsz;
}
@@ -216,8 +216,7 @@ write_timestamp(ErtsTraceTimeStamp *tsp, Eterm **hpp)
return emtime;
raw = tsp->u.monotonic.raw_unique;
- unique = erts_raw_make_unique_monotonic_integer_value(hpp,
- raw);
+ unique = erts_raw_make_unique_monotonic_integer_value(hpp, raw, 0);
res = TUPLE2(*hpp, emtime, unique);
*hpp += 3;
return res;