Added a warning about the usage of TRACING_SETTING to avoid unexpected results.

Author:manus
Date:2011-11-15T18:48:27.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1011 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
manus
2011-11-15 18:48:27 +00:00
parent 5aa4a7371b
commit 2e52a65223

View File

@@ -67,6 +67,9 @@ In the root feature:
ps.disable_tracing ps.disable_tracing
-- Program execution continues. -- Program execution continues.
... ...
-- Restore tracing before exiting for proper cleanup.
ps.enable_tracing
end end
</code> </code>
@@ -86,6 +89,7 @@ Then, in a feature in which tracing is desired:
end end
</code> </code>
{{warning| Enabling/disabling tracing as shown above has to be done within the same routine otherwise the computed depth would be inaccurate and this would cause some unpredictable results.}}
=Using a trace handler= =Using a trace handler=
@@ -112,6 +116,8 @@ To make this facility more approachable for common tasks, EiffelBase also contai
-- Trigger a trace operation from a feature represented by `a_feature_name' defined in -- Trigger a trace operation from a feature represented by `a_feature_name' defined in
-- class `a_class_name' and applied to an object of type `a_type' at a call depth `a_depth'. -- class `a_class_name' and applied to an object of type `a_type' at a call depth `a_depth'.
-- If `a_is_entering' we are entering the routine, otherwise we are exiting it. -- If `a_is_entering' we are entering the routine, otherwise we are exiting it.
require
a_depth_non_negative: a_depth >= 0
deferred deferred
end end
</code> </code>