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

Skip to content

Commit 1c8eedc

Browse files
[po] auto sync
1 parent 290762d commit 1c8eedc

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

library/profile.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,18 +372,22 @@ msgid ""
372372
" example, if the timer returns times measured in thousands of seconds, the "
373373
"time unit would be ``.001``."
374374
msgstr ""
375+
"可以通过 *timer* 参数提供一个自定义计时器来测量代码运行花费了多长时间。 它必须是一个返回代表当前时间的单个数字的函数。 如果该数字为整数,则 "
376+
"*timeunit* 指定一个表示每个时间单位持续时间的乘数。 例如,如果定时器返回以千秒为计量单位的时间值,则时间单位将为 ``.001``。"
375377

376378
#: ../../library/profile.rst:253
377379
msgid ""
378380
"Directly using the :class:`Profile` class allows formatting profile results "
379381
"without writing the profile data to a file::"
380-
msgstr ""
382+
msgstr "直接使用 :class:`Profile` 类将允许格式化性能分析结果而无需将性能分析数据写入到文件::"
381383

382384
#: ../../library/profile.rst:268
383385
msgid ""
384386
"The :class:`Profile` class can also be used as a context manager (supported "
385387
"only in :mod:`cProfile` module. see :ref:`typecontextmanager`)::"
386388
msgstr ""
389+
":class:`Profile` 类也可作为上下文管理器使用 (仅在 :mod:`cProfile` 模块中支持。 参见 "
390+
":ref:`typecontextmanager`)::"
387391

388392
#: ../../library/profile.rst:278
389393
msgid "Added context manager support."
@@ -407,7 +411,7 @@ msgstr "停止收集分析数据,并在内部将结果记录为当前 profile
407411
msgid ""
408412
"Create a :class:`~pstats.Stats` object based on the current profile and "
409413
"print the results to stdout."
410-
msgstr ""
414+
msgstr "根据当前性能分析数据创建一个 :class:`~pstats.Stats` 对象并将结果打印到 stdout。"
411415

412416
#: ../../library/profile.rst:301
413417
msgid "Write the results of the current profile to *filename*."

0 commit comments

Comments
 (0)