diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-10-18 23:33:24 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-10-18 23:33:24 -0700 |
commit | 26d0ccd51bc02177c04e5271448ce42ea0931de8 (patch) | |
tree | 9cf17f7ff8f30207d1a11e9d0674f52137176d3f | |
parent | bb7d15c4f37807a657b53b28e357cc4130f78e67 (diff) | |
parent | 8166a5db5b5470384103a70f59d51b417f94e5ca (diff) | |
download | cpython-git-26d0ccd51bc02177c04e5271448ce42ea0931de8.tar.gz |
merge 3.6 (#28472)
-rw-r--r-- | Doc/howto/instrumentation.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/howto/instrumentation.rst b/Doc/howto/instrumentation.rst index fa83775634..621a608c55 100644 --- a/Doc/howto/instrumentation.rst +++ b/Doc/howto/instrumentation.rst @@ -210,7 +210,7 @@ hierarchy of a Python script: .. code-block:: c - probe process('python').mark("function__entry") { + probe process("python").mark("function__entry") { filename = user_string($arg1); funcname = user_string($arg2); lineno = $arg3; @@ -219,7 +219,7 @@ hierarchy of a Python script: thread_indent(1), funcname, filename, lineno); } - probe process('python').mark("function__return") { + probe process("python").mark("function__return") { filename = user_string($arg1); funcname = user_string($arg2); lineno = $arg3; @@ -234,7 +234,7 @@ It can be invoked like this: $ stap \ show-call-hierarchy.stp \ - -c ./python test.py + -c "./python test.py" The output looks like this:: @@ -259,11 +259,11 @@ For a `--enable-shared` build of CPython, the markers are contained within the libpython shared library, and the probe's dotted path needs to reflect this. For example, this line from the above example:: - probe process('python').mark("function__entry") { + probe process("python").mark("function__entry") { should instead read:: - probe process('python').library("libpython3.6dm.so.1.0").mark("function__entry") { + probe process("python").library("libpython3.6dm.so.1.0").mark("function__entry") { (assuming a debug build of CPython 3.6) |