Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 508b5b6

Browse files
[po] auto sync
1 parent 613b61c commit 508b5b6

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

library/profile.po

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,17 +419,17 @@ msgstr "将当前profile 的结果写入 *filename* 。"
419419

420420
#: ../../library/profile.rst:305
421421
msgid "Profile the cmd via :func:`exec`."
422-
msgstr ""
422+
msgstr "通过 :func:`exec` 对该命令进行性能分析。"
423423

424424
#: ../../library/profile.rst:309
425425
msgid ""
426426
"Profile the cmd via :func:`exec` with the specified global and local "
427427
"environment."
428-
msgstr ""
428+
msgstr "通过 :func:`exec` 并附带指定的全局和局部环境对该命令进行性能分析。"
429429

430430
#: ../../library/profile.rst:314
431431
msgid "Profile ``func(*args, **kwargs)``"
432-
msgstr ""
432+
msgstr "对 ``func(*args, **kwargs)`` 进行性能分析"
433433

434434
#: ../../library/profile.rst:316
435435
msgid ""
@@ -438,6 +438,8 @@ msgid ""
438438
" during the called command/function execution) no profiling results will be "
439439
"printed."
440440
msgstr ""
441+
"请注意性能分析只有在被调用的命令/函数确实能返回时才可用。 如果解释器被终结(例如在被调用的命令/函数执行期间通过 :func:`sys.exit` "
442+
"调用)则将不会打印性能分析结果。"
441443

442444
#: ../../library/profile.rst:324
443445
msgid "The :class:`Stats` Class"
@@ -447,14 +449,16 @@ msgstr ":class:`Stats` 类"
447449
msgid ""
448450
"Analysis of the profiler data is done using the :class:`~pstats.Stats` "
449451
"class."
450-
msgstr ""
452+
msgstr "性能数据的分析是使用 :class:`~pstats.Stats` 类来完成的。"
451453

452454
#: ../../library/profile.rst:333
453455
msgid ""
454456
"This class constructor creates an instance of a \"statistics object\" from a"
455457
" *filename* (or list of filenames) or from a :class:`Profile` instance. "
456458
"Output will be printed to the stream specified by *stream*."
457459
msgstr ""
460+
"这个类构造器会基于 *filename* (或文件名列表) 或者 :class:`Profile` 实例创建一个“统计对象”。 输出将被打印到由 "
461+
"*stream* 所指定的流。"
458462

459463
#: ../../library/profile.rst:337
460464
msgid ""
@@ -469,12 +473,18 @@ msgid ""
469473
"an existing :class:`~pstats.Stats` object, the :meth:`~pstats.Stats.add` "
470474
"method can be used."
471475
msgstr ""
476+
"上述构造器所选择的文件必须由相应版本的 :mod:`profile` 或 :mod:`cProfile` 来创建。 具体来说,*不会* "
477+
"保证文件与此性能分析器的未来版本兼容,也不会保证与其他性能分析器,或运行于不同操作系统的同一性能分析器所产生的文件兼容。 "
478+
"如果提供了几个文件,则相同函数的所有统计数据将被聚合在一起,这样就可以在单个报告中同时考虑几个进程的总体情况。 如果额外的文件需要与现有 "
479+
":class:`~pstats.Stats` 对象中的数据相结合,则可以使用 :meth:`~pstats.Stats.add` 方法。"
472480

473481
#: ../../library/profile.rst:348
474482
msgid ""
475483
"Instead of reading the profile data from a file, a :class:`cProfile.Profile`"
476484
" or :class:`profile.Profile` object can be used as the profile data source."
477485
msgstr ""
486+
"作为从一个文件读取性能分析数据的替代,可以使用 :class:`cProfile.Profile` 或 :class:`profile.Profile`"
487+
" 对象作为性能分析数据源。"
478488

479489
#: ../../library/profile.rst:351
480490
msgid ":class:`Stats` objects have the following methods:"

0 commit comments

Comments
 (0)