Browse Source

Make some revisions in the document

Make some revisions about the example of the
implementation of nested trace points and fix
some typos.

Change-Id: I26a791e1073a2d62bd0f1c79bc26cd898d4e2c55
changes/21/835921/3 3.4.3
zhaolei.lc 5 months ago
parent
commit
32863011fe
  1. 10
      doc/source/user/api.rst

10
doc/source/user/api.rst

@ -76,14 +76,14 @@ How profiler works?
.. code-block:: python
profiler.start("parent_point") # trace_stack.push(<new_uuid>)
# send to collector -> trace_stack[-2:]
# send to collector -> trace_stack[1]
profiler.start("parent_point") # trace_stack.push(<new_uuid>)
# send to collector -> trace_stack[-2:]
profiler.stop() # send to collector -> trace_stack[-2:]
profiler.start("child_point") # trace_stack.push(<new_uuid>)
# send to collector -> trace_stack[2]
profiler.stop() # send to collector -> trace_stack[2]
# trace_stack.pop()
profiler.stop() # send to collector -> trace_stack[-2:]
profiler.stop() # send to collector -> trace_stack[1]
# trace_stack.pop()
It's simple to build a tree of nested trace points, having

Loading…
Cancel
Save