@@ -19,16 +19,16 @@ msgstr ""
1919
2020#: ../../c-api/profiling.rst:6
2121msgid "Profiling and tracing"
22- msgstr "性能分析與追蹤 "
22+ msgstr "效能分析與追蹤 "
2323
2424#: ../../c-api/profiling.rst:8
2525msgid ""
2626"The Python interpreter provides some low-level support for attaching "
2727"profiling and execution tracing facilities. These are used for profiling, "
2828"debugging, and coverage analysis tools."
2929msgstr ""
30- "Python 直譯器提供了一些底層支援,用於附加性能分析與執行追蹤的機制 。這些功能會"
31- "被用於性能分析 、除錯以及覆蓋率分析工具。"
30+ "Python 直譯器提供了一些底層支援,用於附加效能分析與執行追蹤的機制 。這些功能會"
31+ "被用於效能分析 、除錯以及覆蓋率分析工具。"
3232
3333#: ../../c-api/profiling.rst:12
3434msgid ""
@@ -39,7 +39,7 @@ msgid ""
3939"basic events reported to the trace function are the same as had been "
4040"reported to the Python-level trace functions in previous versions."
4141msgstr ""
42- "此 C 介面讓性能分析或追蹤的程式碼能夠避免透過 Python 層級的可呼叫物件進行呼叫"
42+ "此 C 介面讓效能分析或追蹤的程式碼能夠避免透過 Python 層級的可呼叫物件進行呼叫"
4343"所帶來的開銷,而是改為直接進行 C 函式呼叫。此機制的基本屬性並未改變;該介面允"
4444"許追蹤函式以每執行緒(per-thread)為單位安裝,而回報給追蹤函式的基本事件,與"
4545"先前版本中回報給 Python 層級追蹤函式的事件相同。"
@@ -145,7 +145,7 @@ msgstr ""
145145"當例外被引發時,傳遞給 :c:type:`Py_tracefunc` 函式的 *what* 參數的值。在任何"
146146"位元組碼被處理後,若例外在正在執行的框架(frame)內被設定,回呼函式就會以此 "
147147"*what* 值被呼叫。其效果是,當例外傳播導致 Python 堆疊回溯(unwind)時,隨著例"
148- "外傳播,每當返回到各個框架時就會呼叫該回呼。只有追蹤函式會收到這些事件;性能 "
148+ "外傳播,每當返回到各個框架時就會呼叫該回呼。只有追蹤函式會收到這些事件;效能 "
149149"分析器並不需要它們。"
150150
151151#: ../../c-api/profiling.rst:74
@@ -156,7 +156,7 @@ msgid ""
156156"setting :attr:`~frame.f_trace_lines` to *0* on that frame."
157157msgstr ""
158158"當回報一個列號(line-number)事件時,傳遞給 :c:type:`Py_tracefunc` 函式(但非"
159- "性能分析函式 )的 *what* 參數的值。可藉由將該框架(frame)上"
159+ "效能分析函式 )的 *what* 參數的值。可藉由將該框架(frame)上"
160160"的 :attr:`~frame.f_trace_lines` 設為 *0* 來為該框架停用它。"
161161
162162#: ../../c-api/profiling.rst:82
@@ -197,7 +197,7 @@ msgid ""
197197"setting :attr:`~frame.f_trace_opcodes` to *1* on the frame."
198198msgstr ""
199199"當一個新的運算碼(opcode)即將被執行時,傳遞給 :c:type:`Py_tracefunc` 函式"
200- "(但非性能分析函式 )的 *what* 參數的值。此事件預設不會被發出:它必須藉由將該"
200+ "(但非效能分析函式 )的 *what* 參數的值。此事件預設不會被發出:它必須藉由將該"
201201"框架(frame)上的 :attr:`~frame.f_trace_opcodes` 設為 *1* 來明確地請求。"
202202
203203#: ../../c-api/profiling.rst:114
@@ -210,9 +210,9 @@ msgid ""
210210"except :c:data:`PyTrace_LINE` :c:data:`PyTrace_OPCODE` "
211211"and :c:data:`PyTrace_EXCEPTION`."
212212msgstr ""
213- "將性能分析器函式設為 *func*。*obj* 參數會作為函式的第一個參數傳遞,且可以是任"
214- "何 Python 物件或 ``NULL``。如果性能分析函式需要維護狀態 ,為每個執行緒的 "
215- "*obj* 使用不同的值,能提供一個方便且執行緒安全的儲存位置。性能分析函式會針對 "
213+ "將效能分析器函式設為 *func*。*obj* 參數會作為函式的第一個參數傳遞,且可以是任"
214+ "何 Python 物件或 ``NULL``。如果效能分析函式需要維護狀態 ,為每個執行緒的 "
215+ "*obj* 使用不同的值,能提供一個方便且執行緒安全的儲存位置。效能分析函式會針對 "
216216"所有被監控的事件被呼叫,但 :c:data:`PyTrace_LINE`、:c:data:`PyTrace_OPCODE` "
217217"和 :c:data:`PyTrace_EXCEPTION` 除外。"
218218
@@ -232,14 +232,14 @@ msgid ""
232232"it only on the current thread."
233233msgstr ""
234234"與 :c:func:`PyEval_SetProfile` 類似,但會在所有屬於目前直譯器的執行中執行緒上"
235- "設定性能分析函式 ,而非僅在目前的執行緒上設定。"
235+ "設定效能分析函式 ,而非僅在目前的執行緒上設定。"
236236
237237#: ../../c-api/profiling.rst:133
238238msgid ""
239239"As :c:func:`PyEval_SetProfile`, this function ignores any exceptions raised "
240240"while setting the profile functions in all threads."
241241msgstr ""
242- "如同 :c:func:`PyEval_SetProfile`,此函式會忽略在所有執行緒上設定性能分析函式 "
242+ "如同 :c:func:`PyEval_SetProfile`,此函式會忽略在所有執行緒上設定效能分析函式 "
243243"時所引發的任何例外。"
244244
245245#: ../../c-api/profiling.rst:141
0 commit comments