@@ -73,6 +73,8 @@ msgid ""
73
73
":envvar:`PYTHONTRACEMALLOC` environment variable to ``25``, or use the "
74
74
":option:`-X` ``tracemalloc=25`` command line option."
75
75
msgstr ""
76
+ "在默认情况下,一个已分配内存块的追踪将只储存最新的帧 (1 帧)。 要要启动时储存 25 帧:将 :envvar:`PYTHONTRACEMALLOC`"
77
+ " 环境变量设为 ``25``,或使用 :option:`-X` ``tracemalloc=25`` 命令行选项。"
76
78
77
79
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:34
78
80
msgid "Examples"
@@ -97,6 +99,8 @@ msgid ""
97
99
"from modules and that the :mod:`collections` module allocated ``244 KiB`` to"
98
100
" build :class:`~collections.namedtuple` types."
99
101
msgstr ""
102
+ "我们可以看到 Python 从模块载入了 ``4855 KiB`` 数据(字节码和常量)并且 :mod:`collections` 模块分配了 "
103
+ "``244 KiB`` 来构建 :class:`~collections.namedtuple` 类型。"
100
104
101
105
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:73
102
106
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:250
@@ -114,7 +118,7 @@ msgstr "获取两个快照并显示差异:"
114
118
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:95
115
119
msgid ""
116
120
"Example of output before/after running some tests of the Python test suite::"
117
- msgstr ""
121
+ msgstr "运行 Python 测试套件的部分测试之前/之后的输出样例:: "
118
122
119
123
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:109
120
124
msgid ""
@@ -124,6 +128,9 @@ msgid ""
124
128
":mod:`linecache` module has cached ``940 KiB`` of Python source code to "
125
129
"format tracebacks, all of it since the previous snapshot."
126
130
msgstr ""
131
+ "我们可以看到 Python 已载入了 ``8173 KiB`` 模块数据(字节码和常量),并且这比测试之前,即保存前一个快照时载入的数据多出了 "
132
+ "``4428 KiB``。 类似地, :mod:`linecache` 模块已缓存 ``940 KiB`` 的 Python "
133
+ "源代码至格式回溯中,即从前一个快照开始的所有数据。"
127
134
128
135
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:115
129
136
msgid ""
0 commit comments