Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
42b30eef
Commit
42b30eef
authored
Sep 10, 2016
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reST is not markdown
parent
7251b680
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
Doc/howto/instrumentation.rst
Doc/howto/instrumentation.rst
+17
-17
No files found.
Doc/howto/instrumentation.rst
View file @
42b30eef
...
@@ -280,23 +280,22 @@ Available static markers
...
@@ -280,23 +280,22 @@ Available static markers
The filename, function name, and line number are provided back to the
The filename, function name, and line number are provided back to the
tracing script as positional arguments, which must be accessed using
tracing script as positional arguments, which must be accessed using
`
$arg1`, `$arg2`, `$arg3
`:
`
`$arg1``, ``$arg2``, ``$arg3`
`:
* `
$arg1` : `(const char *)` filename, accessible using `user_string($arg1)
`
* `
`$arg1`` : ``(const char *)`` filename, accessible using ``user_string($arg1)`
`
* `
$arg2` : `(const char *)
` function name, accessible using
* `
`$arg2`` : ``(const char *)`
` function name, accessible using
`
user_string($arg2)
`
`
`user_string($arg2)`
`
* `
$arg3` : `int
` line number
* `
`$arg3`` : ``int`
` line number
.. c:function:: function__return(str filename, str funcname, int lineno)
.. c:function:: function__return(str filename, str funcname, int lineno)
This marker is the converse of `function__entry`, and indicates that
This marker is the converse of :c:func:`function__entry`, and indicates that
execution of a Python function has ended (either via ``return``, or
execution of a Python function has ended (either via ``return``, or via an
via an exception). It is only triggered for pure-Python (bytecode)
exception). It is only triggered for pure-Python (bytecode) functions.
functions.
The arguments are the same as for `function__entry`
The arguments are the same as for
:c:func:
`function__entry`
.. c:function:: line(str filename, str funcname, int lineno)
.. c:function:: line(str filename, str funcname, int lineno)
...
@@ -304,17 +303,17 @@ Available static markers
...
@@ -304,17 +303,17 @@ Available static markers
the equivalent of line-by-line tracing with a Python profiler. It is
the equivalent of line-by-line tracing with a Python profiler. It is
not triggered within C functions.
not triggered within C functions.
The arguments are the same as for `function__entry`.
The arguments are the same as for
:c:func:
`function__entry`.
.. c:function:: gc__start(int generation)
.. c:function:: gc__start(int generation)
Fires when the Python interpreter starts a garbage collection cycle.
Fires when the Python interpreter starts a garbage collection cycle.
`
arg0
` is the generation to scan, like :func:`gc.collect()`.
`
`arg0`
` is the generation to scan, like :func:`gc.collect()`.
.. c:function:: gc__done(long collected)
.. c:function:: gc__done(long collected)
Fires when the Python interpreter finishes a garbage collection
Fires when the Python interpreter finishes a garbage collection
cycle. `
arg0
` is the number of collected objects.
cycle. `
`arg0`
` is the number of collected objects.
SystemTap Tapsets
SystemTap Tapsets
...
@@ -348,7 +347,7 @@ Here is a tapset file, based on a non-shared build of CPython:
...
@@ -348,7 +347,7 @@ Here is a tapset file, based on a non-shared build of CPython:
}
}
If this file is installed in SystemTap's tapset directory (e.g.
If this file is installed in SystemTap's tapset directory (e.g.
`
/usr/share/systemtap/tapset
`), then these additional probepoints become
`
`/usr/share/systemtap/tapset`
`), then these additional probepoints become
available:
available:
.. c:function:: python.function.entry(str filename, str funcname, int lineno, frameptr)
.. c:function:: python.function.entry(str filename, str funcname, int lineno, frameptr)
...
@@ -358,9 +357,10 @@ available:
...
@@ -358,9 +357,10 @@ available:
.. c:function:: python.function.return(str filename, str funcname, int lineno, frameptr)
.. c:function:: python.function.return(str filename, str funcname, int lineno, frameptr)
This probe point is the converse of `python.function.return`, and indicates
This probe point is the converse of :c:func:`python.function.return`, and
that execution of a Python function has ended (either via ``return``, or
indicates that execution of a Python function has ended (either via
via an exception). It is only triggered for pure-python (bytecode) functions.
``return``, or via an exception). It is only triggered for pure-python
(bytecode) functions.
Examples
Examples
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment