From 991444c8345a1704f3ddce13eaa010f551a754c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Thu, 8 Mar 2012 10:34:34 +0100 Subject: doc: Move examples and notes into tag-lists --- erts/doc/src/erlang.xml | 51 ++++++++++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 22 deletions(-) (limited to 'erts/doc') diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index cd95a6a312..239cc63f71 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -4881,6 +4881,7 @@ true Type, Res -- see below +

All times are in milliseconds unless otherwise specified.

Returns information about the system as specified by Type:

@@ -4894,15 +4895,20 @@ true

Returns {Total_Exact_Reductions, Exact_Reductions_Since_Last_Call}.

-

NOTE:statistics(exact_reductions) is - a more expensive operation than - statistics(reductions) - especially on an Erlang machine with SMP support.

+

statistics(exact_reductions) is + a more expensive operation than + statistics(reductions) + especially on an Erlang machine with SMP support.

+
garbage_collection

Returns {Number_of_GCs, Words_Reclaimed, 0}. This information may not be valid for all implementations.

+
+> statistics(garbage_collection).
+{85,23961,0}
+
io @@ -4914,12 +4920,18 @@ true reductions

Returns - {Total_Reductions, Reductions_Since_Last_Call}.

-

NOTE: From erts version 5.5 (OTP release R11B) - this value does not include reductions performed in current - time slices of currently scheduled processes. If an - exact value is wanted, use - statistics(exact_reductions).

+ {Total_Reductions, Reductions_Since_Last_Call}.

+ +

From erts version 5.5 (OTP release R11B) + this value does not include reductions performed in current + time slices of currently scheduled processes. If an + exact value is wanted, use + statistics(exact_reductions).

+
+
+> statistics(reductions).
+{2046,11}
+
run_queue @@ -4932,6 +4944,10 @@ true Note that the run-time is the sum of the run-time for all threads in the Erlang run-time system and may therefore be greater than the wall-clock time.

+
+> statistics(runtime).
+{1690,1620}
+
scheduler_wall_time @@ -4989,6 +5005,9 @@ ok 0.9769136803764825 + +

scheduler_wall_time is by default disabled. Use erlang:system_flag(scheduler_wall_time, true) to enable it.

+
wall_clock @@ -5000,18 +5019,6 @@ ok opposed to runtime or CPU time.

-

All times are in milliseconds.

-
-> statistics(runtime).
-{1690,1620}
-> statistics(reductions).
-{2046,11}
-> statistics(garbage_collection).
-{85,23961,0}
- -

scheduler_wall_time is by default disabled. Use erlang:system_flag(scheduler_wall_time, true) to enable it.

-
-
-- cgit v1.2.3