From 9757f9bfd78dec6ef7006eddbb7549e8e64e6a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Tue, 1 Jun 2010 16:24:21 +0200 Subject: Add documentation for call time breakpoints Documented call time breakpoints in - erlang:trace_pattern/3 - erlang:trace_info/2 --- erts/doc/src/erlang.xml | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) (limited to 'erts') diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index c8fe7b4bd2..6f30c7fb21 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -6723,6 +6723,17 @@ true See also erlang:trace_pattern/3.

+ call_time + +

Return the call time values for this function or + true for the pseudo function on_load if call + time tracing is active. Returns false otherwise. + The call time values returned, [{Pid, Count, S, Us}], + is a list of each process that has executed the function and its specific counters. + See also + erlang:trace_pattern/3.

+
+ all

Return a list containing the {Item, Value} tuples @@ -6825,13 +6836,13 @@ true restart -

For the FlagList option call_count: +

For the FlagList option call_count and call_time: restart the existing counters. The behaviour is undefined for other FlagList options.

pause -

For the FlagList option call_count: pause +

For the FlagList option call_count and call_time: pause the existing counters. The behaviour is undefined for other FlagList options.

@@ -6886,6 +6897,23 @@ true

The counter value can be read with erlang:trace_info/2.

+ call_time + +

Starts (MatchSpec == true) or stops + (MatchSpec == false) call time tracing for all + types of function calls. For every function a counter is + incremented when the function is called. Time spent in the function + is accumulated in two other counters, seconds and micro-seconds. + The counters are stored for each call traced process.

+

If call time tracing is started while already running, + the count and time is restarted from zero. Running counters can be + paused with MatchSpec == pause. Paused and running + counters can be restarted from zero with + MatchSpec == restart.

+

The counter value can be read with + erlang:trace_info/2.

+
+

The global and local options are mutually exclusive and global is the default (if no options are @@ -6893,7 +6921,7 @@ true perform a kind of local tracing, and can also not be combined with global. A function can be either globally or locally traced. If global tracing is specified for a - specified set of functions; local, meta and call count + specified set of functions; local, meta, call time and call count tracing for the matching set of local functions will be disabled, and vice versa.

When disabling trace, the option must match the type of trace -- cgit v1.2.3