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
This commit is contained in:
zhaolei.lc 2022-03-31 10:45:12 +08:00
parent 4bc4ed0117
commit 32863011fe
1 changed files with 5 additions and 5 deletions

View File

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