Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
699e2c91
Kaydet (Commit)
699e2c91
authored
Eyl 11, 2016
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
reST is not markdown
üst
4eef5050
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
instrumentation.rst
Doc/howto/instrumentation.rst
+17
-17
No files found.
Doc/howto/instrumentation.rst
Dosyayı görüntüle @
699e2c91
...
...
@@ -280,23 +280,22 @@ Available static markers
The filename, function name, and line number are provided back to the
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
`
user_string($arg2)
`
* `
`$arg2`` : ``(const char *)`
` function name, accessible using
`
`user_string($arg2)`
`
* `
$arg3` : `int
` line number
* `
`$arg3`` : ``int`
` line number
.. c:function:: function__return(str filename, str funcname, int lineno)
This marker is the converse of `function__entry`, and indicates that
execution of a Python function has ended (either via ``return``, or
via an exception). It is only triggered for pure-Python (bytecode)
functions.
This marker is the converse of :c:func:`function__entry`, and indicates that
execution of a Python function has ended (either via ``return``, or via an
exception). It is only triggered for pure-Python (bytecode) 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)
...
...
@@ -304,17 +303,17 @@ Available static markers
the equivalent of line-by-line tracing with a Python profiler. It is
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)
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)
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
...
...
@@ -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.
`
/usr/share/systemtap/tapset
`), then these additional probepoints become
`
`/usr/share/systemtap/tapset`
`), then these additional probepoints become
available:
.. c:function:: python.function.entry(str filename, str funcname, int lineno, frameptr)
...
...
@@ -358,9 +357,10 @@ available:
.. c:function:: python.function.return(str filename, str funcname, int lineno, frameptr)
This probe point is the converse of `python.function.return`, and indicates
that execution of a Python function has ended (either via ``return``, or
via an exception). It is only triggered for pure-python (bytecode) functions.
This probe point is the converse of :c:func:`python.function.return`, and
indicates that execution of a Python function has ended (either via
``return``, or via an exception). It is only triggered for pure-python
(bytecode) functions.
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