@@ -315,6 +315,8 @@ msgid ""
315315"reading and examining profile dumps. It has a simple line-oriented "
316316"interface (implemented using :mod:`cmd`) and interactive help."
317317msgstr ""
318+ "作为脚本发起调用,:mod:`pstats` 模块是一个用于读取和性能分析转储文件的统计数据浏览器。 它有一个简单的面向行的界面(使用 "
319+ ":mod:`cmd` 实现)和交互式的帮助。"
318320
319321#: ../../library/profile.rst:209
320322msgid ":mod:`profile` and :mod:`cProfile` Module Reference"
@@ -330,7 +332,7 @@ msgstr ":mod:`profile` 和 :mod:`cProfile` 模块都提供下列函数:"
330332msgid ""
331333"This function takes a single argument that can be passed to the :func:`exec`"
332334" function, and an optional file name. In all cases this routine executes::"
333- msgstr ""
335+ msgstr "此函数接受一个可被传递给 :func:`exec` 函数的单独参数,以及一个可选的文件名。 在所有情况下这个例程都会执行:: "
334336
335337#: ../../library/profile.rst:225
336338msgid ""
@@ -340,23 +342,26 @@ msgid ""
340342"specified, it is passed to this :class:`~pstats.Stats` instance to control "
341343"how the results are sorted."
342344msgstr ""
345+ "并收集执行过程中的性能分析统计数据。 如果未提供文件名,则此函数会自动创建一个 :class:`~pstats.Stats` "
346+ "实例并打印一个简单的性能分析报告。 如果指定了 sort 值,则它会被传递给这个 :class:`~pstats.Stats` "
347+ "实例以控制结果的排序方式。"
343348
344349#: ../../library/profile.rst:233
345350msgid ""
346351"This function is similar to :func:`run`, with added arguments to supply the "
347352"globals and locals dictionaries for the *command* string. This routine "
348353"executes::"
349- msgstr ""
354+ msgstr "此函数类似于 :func:`run`,带有为 *command* 字符串提供全局和局部字典的附加参数。 这个例程会执行:: "
350355
351356#: ../../library/profile.rst:239
352357msgid "and gathers profiling statistics as in the :func:`run` function above."
353- msgstr ""
358+ msgstr "并像在上述的 :func:`run` 函数中一样收集性能分析数据。 "
354359
355360#: ../../library/profile.rst:243
356361msgid ""
357362"This class is normally only used if more precise control over profiling is "
358363"needed than what the :func:`cProfile.run` function provides."
359- msgstr ""
364+ msgstr "这个类通常只在需要比 :func:`cProfile.run` 函数所能提供的更精确的性能分析控制时被使用。 "
360365
361366#: ../../library/profile.rst:246
362367msgid ""
0 commit comments