@@ -16,7 +16,7 @@ msgid ""
1616msgstr ""
1717"Project-Id-Version : Python 3.7\n "
1818"Report-Msgid-Bugs-To : \n "
19- "POT-Creation-Date : 2023-03-24 14:40+0000\n "
19+ "POT-Creation-Date : 2023-03-31 14:40+0000\n "
2020"PO-Revision-Date : 2019-09-01 03:25+0000\n "
2121"
Last-Translator :
Freesand Leo <[email protected] >, 2023\n "
2222"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -315,29 +315,31 @@ msgstr "另请参阅 :func:`start`, :func:`is_tracing` 和 :func:`clear_traces`
315315msgid ""
316316"Take a snapshot of traces of memory blocks allocated by Python. Return a new"
317317" :class:`Snapshot` instance."
318- msgstr ""
318+ msgstr "保存一个由 Python 分配的内存块的追踪的快照。 返回一个新的 :class:`Snapshot` 实例。 "
319319
320320#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:348
321321msgid ""
322322"The snapshot does not include memory blocks allocated before the "
323323":mod:`tracemalloc` module started to trace memory allocations."
324- msgstr ""
324+ msgstr "该快照不包括在 :mod:`tracemalloc` 模块开始追踪内存分配之前分配的内存块。 "
325325
326326#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:351
327327msgid ""
328328"Tracebacks of traces are limited to :func:`get_traceback_limit` frames. Use "
329329"the *nframe* parameter of the :func:`start` function to store more frames."
330330msgstr ""
331+ "追踪的回溯被限制为 :func:`get_traceback_limit` 个帧。 可使用 :func:`start` 函数的 *nframe* "
332+ "形参来保存更多的帧。"
331333
332334#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:354
333335msgid ""
334336"The :mod:`tracemalloc` module must be tracing memory allocations to take a "
335337"snapshot, see the :func:`start` function."
336- msgstr ""
338+ msgstr ":mod:`tracemalloc` 模块必须正在追踪内存分配才能保存快照,参见 :func:`start` 函数。 "
337339
338340#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:357
339341msgid "See also the :func:`get_object_traceback` function."
340- msgstr ""
342+ msgstr "另请参阅 :func:`get_object_traceback` 函数。 "
341343
342344#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:361
343345msgid "DomainFilter"
@@ -351,18 +353,18 @@ msgstr "按地址空间(域)来过滤内存块的追踪。"
351353msgid ""
352354"If *inclusive* is ``True`` (include), match memory blocks allocated in the "
353355"address space :attr:`domain`."
354- msgstr ""
356+ msgstr "如果 *inclusive* 为 ``True`` (包括),则匹配分配于地址空间 :attr:`domain` 中的内存块。 "
355357
356358#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:374
357359msgid ""
358360"If *inclusive* is ``False`` (exclude), match memory blocks not allocated in "
359361"the address space :attr:`domain`."
360- msgstr ""
362+ msgstr "如果 *inclusive* 为 ``False`` (排除),则匹配不是分配于地址空间 :attr:`domain` 中的内存块。 "
361363
362364#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:379
363365#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:631
364366msgid "Address space of a memory block (``int``). Read-only property."
365- msgstr ""
367+ msgstr "内存块的地址空间 (``int``)。 只读的特征属性。 Read-only property. "
366368
367369#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:383
368370msgid "Filter"
@@ -378,6 +380,8 @@ msgid ""
378380"*filename_pattern*. The ``'.pyc'`` file extension is replaced with "
379381"``'.py'``."
380382msgstr ""
383+ "请参阅 :func:`fnmatch.fnmatch` 函数来了解 *filename_pattern* 的语法。 ``'.pyc'`` 文件扩展名以 "
384+ "``'.py'`` 替换。"
381385
382386#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:393
383387msgid "Examples:"
@@ -411,64 +415,74 @@ msgstr "增加了 :attr:`domain` 属性。"
411415
412416#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:411
413417msgid "Address space of a memory block (``int`` or ``None``)."
414- msgstr ""
418+ msgstr "内存块的地址空间 (``int`` 或 ``None``)。 "
415419
416420#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:413
417421#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:633
418422msgid ""
419423"tracemalloc uses the domain ``0`` to trace memory allocations made by "
420424"Python. C extensions can use other domains to trace other resources."
421425msgstr ""
426+ "tracemalloc 使用 ``0`` 号域来追踪 Python 的内存分配操作。 C 扩展可以使用其他域来追踪其他资源。extensions can"
427+ " use other domains to trace other resources."
422428
423429#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:418
424430msgid ""
425431"If *inclusive* is ``True`` (include), only match memory blocks allocated in "
426432"a file with a name matching :attr:`filename_pattern` at line number "
427433":attr:`lineno`."
428434msgstr ""
435+ "如果 *inclusive* 为 ``True`` (包括),则只匹配名称与 :attr:`filename_pattern` 匹配的文件在行号为 "
436+ ":attr:`lineno` 的位置上分配的内存块。"
429437
430438#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:422
431439msgid ""
432440"If *inclusive* is ``False`` (exclude), ignore memory blocks allocated in a "
433441"file with a name matching :attr:`filename_pattern` at line number "
434442":attr:`lineno`."
435443msgstr ""
444+ "如果 *inclusive* 为 ``False`` (排除),则忽略名称与 :attr:`filename_pattern` 匹配的文件在行号为 "
445+ ":attr:`lineno` 的位置上分配的内存块。"
436446
437447#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:428
438448msgid ""
439449"Line number (``int``) of the filter. If *lineno* is ``None``, the filter "
440450"matches any line number."
441- msgstr ""
451+ msgstr "过滤器的行号 (``int``)。 如果 *lineno* 为 ``None``,则该过滤器将匹配任意行号。 "
442452
443453#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:433
444454msgid "Filename pattern of the filter (``str``). Read-only property."
445- msgstr ""
455+ msgstr "过滤器的文件名模型 (``str``)。 只读的特征属性。 "
446456
447457#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:437
448458msgid ""
449459"If *all_frames* is ``True``, all frames of the traceback are checked. If "
450460"*all_frames* is ``False``, only the most recent frame is checked."
451461msgstr ""
462+ "如果 *all_frames* 为 ``True``,则回溯的所有帧都会被检查。 如果 *all_frames* 为 "
463+ "``False``,则只有最近的帧会被检查。"
452464
453465#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:440
454466msgid ""
455467"This attribute has no effect if the traceback limit is ``1``. See the "
456468":func:`get_traceback_limit` function and :attr:`Snapshot.traceback_limit` "
457469"attribute."
458470msgstr ""
471+ "如果回溯限制为 ``1`` 则该属性将没有效果。 参见 :func:`get_traceback_limit` 函数和 "
472+ ":attr:`Snapshot.traceback_limit` 属性。"
459473
460474#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:446
461475msgid "Frame"
462- msgstr ""
476+ msgstr "帧 "
463477
464478#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:450
465479msgid "Frame of a traceback."
466- msgstr ""
480+ msgstr "回溯的帧。 "
467481
468482#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:452
469483msgid ""
470484"The :class:`Traceback` class is a sequence of :class:`Frame` instances."
471- msgstr ""
485+ msgstr ":class:`Traceback` 类是一个 :class:`Frame` 实例的序列。instances. "
472486
473487#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:456
474488msgid "Filename (``str``)."
@@ -484,23 +498,24 @@ msgstr "快照"
484498
485499#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:468
486500msgid "Snapshot of traces of memory blocks allocated by Python."
487- msgstr ""
501+ msgstr "由 Python 分配的内存块的追踪的快照。 "
488502
489503#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:470
490504msgid "The :func:`take_snapshot` function creates a snapshot instance."
491- msgstr ""
505+ msgstr ":func:`take_snapshot` 函数创建一个快照实例。 "
492506
493507#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:474
494508msgid ""
495509"Compute the differences with an old snapshot. Get statistics as a sorted "
496510"list of :class:`StatisticDiff` instances grouped by *key_type*."
497511msgstr ""
512+ "计算与某个旧快照的差异。 获取按 *key_type* 分组的 :class:`StatisticDiff` 实例的已排序列表形式的统计信息。"
498513
499514#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:477
500515msgid ""
501516"See the :meth:`Snapshot.statistics` method for *key_type* and *cumulative* "
502517"parameters."
503- msgstr ""
518+ msgstr "请参阅 :meth:`Snapshot.statistics` 方法了解 *key_type* 和 *cumulative* 形参。 "
504519
505520#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:480
506521msgid ""
@@ -509,6 +524,9 @@ msgid ""
509524"of :attr:`StatisticDiff.count_diff`, :attr:`Statistic.count` and then by "
510525":attr:`StatisticDiff.traceback`."
511526msgstr ""
527+ "结果将按以下值从大到小排序: :attr:`StatisticDiff.size_diff` 的绝对值, "
528+ ":attr:`StatisticDiff.size`, :attr:`StatisticDiff.count_diff` 的绝对值, "
529+ ":attr:`Statistic.count` 然后是 :attr:`StatisticDiff.traceback`。"
512530
513531#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:488
514532msgid "Write the snapshot into a file."
@@ -525,17 +543,20 @@ msgid ""
525543"instances. If *filters* is an empty list, return a new :class:`Snapshot` "
526544"instance with a copy of the traces."
527545msgstr ""
546+ "使用已过滤的 :attr:`traces` 序列新建一个 :class:`Snapshot` 实例,*filters* 是 "
547+ ":class:`DomainFilter` 和 :class:`Filter` 实例的列表。 如果 *filters* "
548+ "为空列表,则返回一个包含追踪的副本的新的 :class:`Snapshot` 实例。"
528549
529550#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:500
530551msgid ""
531552"All inclusive filters are applied at once, a trace is ignored if no "
532553"inclusive filters match it. A trace is ignored if at least one exclusive "
533554"filter matches it."
534- msgstr ""
555+ msgstr "包括的所有过滤器将同时被应用,一个追踪如果没有任何包括的过滤器与其匹配则会被忽略。 一个追踪如果有至少一个排除的过滤器与其匹配将会被忽略。 "
535556
536557#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:504
537558msgid ":class:`DomainFilter` instances are now also accepted in *filters*."
538- msgstr ""
559+ msgstr ":class:`DomainFilter` 实例现在同样被 *filters* 所接受。 "
539560
540561#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:510
541562msgid "Load a snapshot from a file."
@@ -590,31 +611,36 @@ msgid ""
590611"cumulative mode can only be used with *key_type* equals to ``'filename'`` "
591612"and ``'lineno'``."
592613msgstr ""
614+ "如果 *cumulative* 为 ``True``,则累积一个追踪的回溯的所有帧的内存块的大小和数量,而不只是最近的帧。 累积模式只能在 "
615+ "*key_type* 等于 ``'filename'`` 和 ``'lineno'`` 的情况下使用。"
593616
594617#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:533
595618msgid ""
596619"The result is sorted from the biggest to the smallest by: "
597620":attr:`Statistic.size`, :attr:`Statistic.count` and then by "
598621":attr:`Statistic.traceback`."
599622msgstr ""
623+ "结果将按以下值从大到小排序: :attr:`Statistic.size`, :attr:`Statistic.count` 然后是 "
624+ ":attr:`Statistic.traceback`。"
600625
601626#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:540
602627msgid ""
603628"Maximum number of frames stored in the traceback of :attr:`traces`: result "
604629"of the :func:`get_traceback_limit` when the snapshot was taken."
605630msgstr ""
631+ "保存在 :attr:`traces` 的回溯中的帧的最大数量:当快照被保存时 :func:`get_traceback_limit` 的结果。"
606632
607633#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:545
608634msgid ""
609635"Traces of all memory blocks allocated by Python: sequence of :class:`Trace` "
610636"instances."
611- msgstr ""
637+ msgstr "由 Python 分配的所有内存块的追踪: :class:`Trace` 实例的序列。 "
612638
613639#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:548
614640msgid ""
615641"The sequence has an undefined order. Use the :meth:`Snapshot.statistics` "
616642"method to get a sorted list of statistics."
617- msgstr ""
643+ msgstr "该序列的顺序是未定义的。 请使用 :meth:`Snapshot.statistics` 方法来获取统计信息的已排序列表。 "
618644
619645#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:553
620646msgid "Statistic"
@@ -639,7 +665,7 @@ msgstr "内存块数(``整形``)。"
639665
640666#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:569
641667msgid "Total size of memory blocks in bytes (``int``)."
642- msgstr ""
668+ msgstr "以字节数表示的内存块总计大小 (``int``)。 "
643669
644670#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:573
645671#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:642
@@ -709,7 +735,7 @@ msgstr "一个内存块的跟踪信息。"
709735msgid ""
710736"The :attr:`Snapshot.traces` attribute is a sequence of :class:`Trace` "
711737"instances."
712- msgstr ""
738+ msgstr ":attr:`Snapshot.traces` 属性是一个 :class:`Trace` 实例的序列。 "
713739
714740#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:638
715741msgid "Size of the memory block in bytes (``int``)."
0 commit comments