@@ -49,8 +49,8 @@ msgid ""
49
49
"output of ``perf``."
50
50
msgstr ""
51
51
"在 Python 應用程式中使用 ``perf`` 分析器的主要問題是 ``perf`` 僅獲取有關原生"
52
- "符號的資訊,即用 C 編寫的函式和程式的名稱。這表示程式碼中的 Python 函式名 "
53
- "稱和檔案名稱不會出現在 ``perf`` 的輸出中。"
52
+ "符號的資訊,即用 C 編寫的函式和程式的名稱。這表示程式碼中的 Python 函式名稱和 "
53
+ "檔案名稱不會出現在 ``perf`` 的輸出中。"
54
54
55
55
#: ../../howto/perf_profiling.rst:22
56
56
msgid ""
@@ -73,9 +73,9 @@ msgid ""
73
73
"check the output of ``python -m sysconfig | grep HAVE_PERF_TRAMPOLINE`` to "
74
74
"see if your system is supported."
75
75
msgstr ""
76
- "目前對 ``perf`` 分析器的支援僅適用於 Linux 的特定架構上。檢查 "
77
- "``configure`` 建構步驟的輸出或檢查 ``python -m sysconfig | grep "
78
- "HAVE_PERF_TRAMPOLINE`` 的輸出來查看你的系統是否支援 。"
76
+ "目前對 ``perf`` 分析器的支援僅適用於 Linux 的特定架構上。檢查 ``configure`` "
77
+ "建構步驟的輸出或檢查 ``python -m sysconfig | grep HAVE_PERF_TRAMPOLINE`` 的輸 "
78
+ "出來查看你的系統是否支援 。"
79
79
80
80
#: ../../howto/perf_profiling.rst:36
81
81
msgid "For example, consider the following script:"
@@ -98,9 +98,9 @@ msgid ""
98
98
"which Python function corresponds to which bytecode-evaluating function."
99
99
msgstr ""
100
100
"如你所見,Python 函式未顯示在輸出中,僅顯示 ``_Py_Eval_EvalFrameDefault`` "
101
- "(為 Python 位元組碼 (bytecode) 求值的函式)。不幸的是,這不是很有用,因為所有 "
102
- "Python 函式都使用相同的 C 函式來替位元組碼求值,因此我們無法知道哪個 Python 函 "
103
- "式是對應於哪個位元組碼計算函式 。"
101
+ "(為 Python 位元組碼 (bytecode) 求值的函式)。不幸的是,這不是很有用,因為所 "
102
+ "有 Python 函式都使用相同的 C 函式來替位元組碼求值,因此我們無法知道哪個 "
103
+ "Python 函式是對應於哪個位元組碼計算函式 。"
104
104
105
105
#: ../../howto/perf_profiling.rst:105
106
106
msgid ""
@@ -162,8 +162,8 @@ msgid ""
162
162
msgstr ""
163
163
"為了獲得最佳結果,應使用 ``CFLAGS=\" -fno-omit-frame-pointer -mno-omit-leaf-"
164
164
"frame-pointer\" `` 來進行 Python 編譯,因為這能允許分析器僅使用 frame 指標而不"
165
- "是 DWARF 除錯資訊來解析 (unwind)。這是因為,由於插入以允許 ``perf`` 支援的程式碼是動 "
166
- "態生成的 ,因此它沒有任何可用的 DWARF 除錯資訊。"
165
+ "是 DWARF 除錯資訊來解析 (unwind)。這是因為,由於插入以允許 ``perf`` 支援的程 "
166
+ "式碼是動態生成的 ,因此它沒有任何可用的 DWARF 除錯資訊。"
167
167
168
168
#: ../../howto/perf_profiling.rst:201
169
169
msgid ""
@@ -176,5 +176,5 @@ msgid ""
176
176
"compiled with frame pointers and therefore it may not be able to show Python "
177
177
"functions in the output of ``perf``."
178
178
msgstr ""
179
- "如果你沒有看到任何輸出,則表示你的直譯器尚未使用 frame 指標進行編譯,因此它 "
180
- "可能無法在 ``perf`` 的輸出中顯示 Python 函式。"
179
+ "如果你沒有看到任何輸出,則表示你的直譯器尚未使用 frame 指標進行編譯,因此它可 "
180
+ "能無法在 ``perf`` 的輸出中顯示 Python 函式。"
0 commit comments