Skip to content

Commit 3045c8c

Browse files
sync with cpython b8cb8370
1 parent 9113419 commit 3045c8c

File tree

4 files changed

+1229
-1001
lines changed

4 files changed

+1229
-1001
lines changed

howto/instrumentation.po

Lines changed: 113 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.14\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-09-04 00:15+0000\n"
10+
"POT-Creation-Date: 2026-03-16 00:22+0000\n"
1111
"PO-Revision-Date: 2023-08-17 22:17+0800\n"
1212
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -676,10 +676,111 @@ msgstr ""
676676
"形式的事件名稱,``arg1`` 是指向元組 (tuple) 物件的 :c:type:`PyObject` 指標。"
677677

678678
#: ../../howto/instrumentation.rst:345
679+
msgid "C Entry Points"
680+
msgstr ""
681+
682+
#: ../../howto/instrumentation.rst:347
683+
msgid ""
684+
"To simplify triggering of DTrace markers, Python's C API comes with a number "
685+
"of helper functions that mirror each static marker. On builds of Python "
686+
"without DTrace enabled, these do nothing."
687+
msgstr ""
688+
689+
#: ../../howto/instrumentation.rst:351
690+
msgid ""
691+
"In general, it is not necessary to call these yourself, as Python will do it "
692+
"for you."
693+
msgstr ""
694+
695+
#: ../../howto/instrumentation.rst:358
696+
msgid "C API Function"
697+
msgstr ""
698+
699+
#: ../../howto/instrumentation.rst:359
700+
#, fuzzy
701+
msgid "Static Marker"
702+
msgstr "靜態 SystemTap 標記"
703+
704+
#: ../../howto/instrumentation.rst:360
705+
msgid "Notes"
706+
msgstr ""
707+
708+
#: ../../howto/instrumentation.rst:362
709+
msgid ":c:func:`!line`"
710+
msgstr ""
711+
712+
#: ../../howto/instrumentation.rst:365
713+
#, fuzzy
714+
msgid ":c:func:`!function__entry`"
715+
msgstr "引數與 :c:func:`!function__entry` 相同"
716+
717+
#: ../../howto/instrumentation.rst:368
718+
msgid ":c:func:`!function__return`"
719+
msgstr ""
720+
721+
#: ../../howto/instrumentation.rst:371
722+
msgid ":c:func:`!gc__start`"
723+
msgstr ""
724+
725+
#: ../../howto/instrumentation.rst:374
726+
msgid ":c:func:`!gc__done`"
727+
msgstr ""
728+
729+
#: ../../howto/instrumentation.rst:377
730+
msgid ":c:func:`!instance__new__start`"
731+
msgstr ""
732+
733+
#: ../../howto/instrumentation.rst:378 ../../howto/instrumentation.rst:381
734+
#: ../../howto/instrumentation.rst:384 ../../howto/instrumentation.rst:387
735+
msgid "Not used by Python"
736+
msgstr ""
737+
738+
#: ../../howto/instrumentation.rst:380
739+
msgid ":c:func:`!instance__new__done`"
740+
msgstr ""
741+
742+
#: ../../howto/instrumentation.rst:383
743+
msgid ":c:func:`!instance__delete__start`"
744+
msgstr ""
745+
746+
#: ../../howto/instrumentation.rst:386
747+
msgid ":c:func:`!instance__delete__done`"
748+
msgstr ""
749+
750+
#: ../../howto/instrumentation.rst:389
751+
msgid ":c:func:`!import__find__load__start`"
752+
msgstr ""
753+
754+
#: ../../howto/instrumentation.rst:392
755+
msgid ":c:func:`!import__find__load__done`"
756+
msgstr ""
757+
758+
#: ../../howto/instrumentation.rst:395
759+
msgid ":c:func:`!audit`"
760+
msgstr ""
761+
762+
#: ../../howto/instrumentation.rst:400
763+
msgid "C Probing Checks"
764+
msgstr ""
765+
766+
#: ../../howto/instrumentation.rst:415
767+
msgid ""
768+
"All calls to ``PyDTrace`` functions must be guarded by a call to one of "
769+
"these functions. This allows Python to minimize performance impact when "
770+
"probing is disabled."
771+
msgstr ""
772+
773+
#: ../../howto/instrumentation.rst:419
774+
msgid ""
775+
"On builds without DTrace enabled, these functions do nothing and return "
776+
"``0``."
777+
msgstr ""
778+
779+
#: ../../howto/instrumentation.rst:423
679780
msgid "SystemTap Tapsets"
680781
msgstr "SystemTap Tapsets"
681782

682-
#: ../../howto/instrumentation.rst:347
783+
#: ../../howto/instrumentation.rst:425
683784
msgid ""
684785
"The higher-level way to use the SystemTap integration is to use a "
685786
"\"tapset\": SystemTap's equivalent of a library, which hides some of the "
@@ -688,11 +789,11 @@ msgstr ""
688789
"使用 SystemTap 整合的高階方法是使用 \"tapset\":SystemTap 相當於一個函式庫,"
689790
"它隱藏了靜態標記的一些低階詳細資訊。"
690791

691-
#: ../../howto/instrumentation.rst:351
792+
#: ../../howto/instrumentation.rst:429
692793
msgid "Here is a tapset file, based on a non-shared build of CPython:"
693794
msgstr "這是一個 tapset 檔案,是基於 CPython 的非共享建置版本:"
694795

695-
#: ../../howto/instrumentation.rst:353
796+
#: ../../howto/instrumentation.rst:431
696797
msgid ""
697798
"/*\n"
698799
" Provide a higher-level wrapping around the function__entry and\n"
@@ -733,23 +834,23 @@ msgstr ""
733834
" frameptr = $arg4\n"
734835
"}"
735836

736-
#: ../../howto/instrumentation.rst:374
837+
#: ../../howto/instrumentation.rst:452
737838
msgid ""
738839
"If this file is installed in SystemTap's tapset directory (e.g. ``/usr/share/"
739840
"systemtap/tapset``), then these additional probepoints become available:"
740841
msgstr ""
741842
"如果此檔案是安裝在 SystemTap 的 tapset 目錄中(例如 ``/usr/share/systemtap/"
742843
"tapset``),則這些額外的探測點將可被使用:"
743844

744-
#: ../../howto/instrumentation.rst:380
845+
#: ../../howto/instrumentation.rst:458
745846
msgid ""
746847
"This probe point indicates that execution of a Python function has begun. It "
747848
"is only triggered for pure-Python (bytecode) functions."
748849
msgstr ""
749850
"該探測點表示 Python 函式的執行已經開始。它僅針對純 Python(位元組碼)函式觸"
750851
"發。"
751852

752-
#: ../../howto/instrumentation.rst:385
853+
#: ../../howto/instrumentation.rst:463
753854
msgid ""
754855
"This probe point is the converse of ``python.function.return``, and "
755856
"indicates that execution of a Python function has ended (either via "
@@ -759,11 +860,11 @@ msgstr ""
759860
"這個探測點與 ``python.function.return`` 相反,表示 Python 函式的執行已經結束"
760861
"(透過 ``return`` 或者透過例外)。它僅針對純 Python(位元組碼)函式觸發。"
761862

762-
#: ../../howto/instrumentation.rst:392
863+
#: ../../howto/instrumentation.rst:470
763864
msgid "Examples"
764865
msgstr "範例"
765866

766-
#: ../../howto/instrumentation.rst:393
867+
#: ../../howto/instrumentation.rst:471
767868
msgid ""
768869
"This SystemTap script uses the tapset above to more cleanly implement the "
769870
"example given above of tracing the Python function-call hierarchy, without "
@@ -772,7 +873,7 @@ msgstr ""
772873
"此 SystemTap 腳本使用上面的 tapset 來更清晰地實作上面給出的追蹤 Python 函式呼"
773874
"叫階層結構的範例,而無需直接命名靜態標記:"
774875

775-
#: ../../howto/instrumentation.rst:397
876+
#: ../../howto/instrumentation.rst:475
776877
msgid ""
777878
"probe python.function.entry\n"
778879
"{\n"
@@ -798,7 +899,7 @@ msgstr ""
798899
" thread_indent(-1), funcname, filename, lineno);\n"
799900
"}"
800901

801-
#: ../../howto/instrumentation.rst:412
902+
#: ../../howto/instrumentation.rst:490
802903
msgid ""
803904
"The following script uses the tapset above to provide a top-like view of all "
804905
"running CPython code, showing the top 20 most frequently entered bytecode "
@@ -807,7 +908,7 @@ msgstr ""
807908
"以下腳本使用上面的 tapset 來提供所有正在運行之 CPython 程式碼的近乎最高層視"
808909
"角,顯示整個系統中每秒最常被進入的 20 個位元組碼幀 (bytecode frame):"
809910

810-
#: ../../howto/instrumentation.rst:416
911+
#: ../../howto/instrumentation.rst:494
811912
msgid ""
812913
"global fn_calls;\n"
813914
"\n"

0 commit comments

Comments
 (0)