@@ -16,7 +16,7 @@ msgid ""
16
16
msgstr ""
17
17
"Project-Id-Version : Python 3.7\n "
18
18
"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 "
20
20
"PO-Revision-Date : 2019-09-01 03:25+0000\n "
21
21
"Last-Translator : Freesand Leo <yuqinju@163.com>, 2023\n "
22
22
"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`
315
315
msgid ""
316
316
"Take a snapshot of traces of memory blocks allocated by Python. Return a new"
317
317
" :class:`Snapshot` instance."
318
- msgstr ""
318
+ msgstr "保存一个由 Python 分配的内存块的追踪的快照。 返回一个新的 :class:`Snapshot` 实例。 "
319
319
320
320
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:348
321
321
msgid ""
322
322
"The snapshot does not include memory blocks allocated before the "
323
323
":mod:`tracemalloc` module started to trace memory allocations."
324
- msgstr ""
324
+ msgstr "该快照不包括在 :mod:`tracemalloc` 模块开始追踪内存分配之前分配的内存块。 "
325
325
326
326
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:351
327
327
msgid ""
328
328
"Tracebacks of traces are limited to :func:`get_traceback_limit` frames. Use "
329
329
"the *nframe* parameter of the :func:`start` function to store more frames."
330
330
msgstr ""
331
+ "追踪的回溯被限制为 :func:`get_traceback_limit` 个帧。 可使用 :func:`start` 函数的 *nframe* "
332
+ "形参来保存更多的帧。"
331
333
332
334
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:354
333
335
msgid ""
334
336
"The :mod:`tracemalloc` module must be tracing memory allocations to take a "
335
337
"snapshot, see the :func:`start` function."
336
- msgstr ""
338
+ msgstr ":mod:`tracemalloc` 模块必须正在追踪内存分配才能保存快照,参见 :func:`start` 函数。 "
337
339
338
340
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:357
339
341
msgid "See also the :func:`get_object_traceback` function."
340
- msgstr ""
342
+ msgstr "另请参阅 :func:`get_object_traceback` 函数。 "
341
343
342
344
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:361
343
345
msgid "DomainFilter"
@@ -351,18 +353,18 @@ msgstr "按地址空间(域)来过滤内存块的追踪。"
351
353
msgid ""
352
354
"If *inclusive* is ``True`` (include), match memory blocks allocated in the "
353
355
"address space :attr:`domain`."
354
- msgstr ""
356
+ msgstr "如果 *inclusive* 为 ``True`` (包括),则匹配分配于地址空间 :attr:`domain` 中的内存块。 "
355
357
356
358
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:374
357
359
msgid ""
358
360
"If *inclusive* is ``False`` (exclude), match memory blocks not allocated in "
359
361
"the address space :attr:`domain`."
360
- msgstr ""
362
+ msgstr "如果 *inclusive* 为 ``False`` (排除),则匹配不是分配于地址空间 :attr:`domain` 中的内存块。 "
361
363
362
364
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:379
363
365
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:631
364
366
msgid "Address space of a memory block (``int``). Read-only property."
365
- msgstr ""
367
+ msgstr "内存块的地址空间 (``int``)。 只读的特征属性。 Read-only property. "
366
368
367
369
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:383
368
370
msgid "Filter"
@@ -378,6 +380,8 @@ msgid ""
378
380
"*filename_pattern*. The ``'.pyc'`` file extension is replaced with "
379
381
"``'.py'``."
380
382
msgstr ""
383
+ "请参阅 :func:`fnmatch.fnmatch` 函数来了解 *filename_pattern* 的语法。 ``'.pyc'`` 文件扩展名以 "
384
+ "``'.py'`` 替换。"
381
385
382
386
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:393
383
387
msgid "Examples:"
@@ -411,64 +415,74 @@ msgstr "增加了 :attr:`domain` 属性。"
411
415
412
416
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:411
413
417
msgid "Address space of a memory block (``int`` or ``None``)."
414
- msgstr ""
418
+ msgstr "内存块的地址空间 (``int`` 或 ``None``)。 "
415
419
416
420
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:413
417
421
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:633
418
422
msgid ""
419
423
"tracemalloc uses the domain ``0`` to trace memory allocations made by "
420
424
"Python. C extensions can use other domains to trace other resources."
421
425
msgstr ""
426
+ "tracemalloc 使用 ``0`` 号域来追踪 Python 的内存分配操作。 C 扩展可以使用其他域来追踪其他资源。extensions can"
427
+ " use other domains to trace other resources."
422
428
423
429
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:418
424
430
msgid ""
425
431
"If *inclusive* is ``True`` (include), only match memory blocks allocated in "
426
432
"a file with a name matching :attr:`filename_pattern` at line number "
427
433
":attr:`lineno`."
428
434
msgstr ""
435
+ "如果 *inclusive* 为 ``True`` (包括),则只匹配名称与 :attr:`filename_pattern` 匹配的文件在行号为 "
436
+ ":attr:`lineno` 的位置上分配的内存块。"
429
437
430
438
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:422
431
439
msgid ""
432
440
"If *inclusive* is ``False`` (exclude), ignore memory blocks allocated in a "
433
441
"file with a name matching :attr:`filename_pattern` at line number "
434
442
":attr:`lineno`."
435
443
msgstr ""
444
+ "如果 *inclusive* 为 ``False`` (排除),则忽略名称与 :attr:`filename_pattern` 匹配的文件在行号为 "
445
+ ":attr:`lineno` 的位置上分配的内存块。"
436
446
437
447
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:428
438
448
msgid ""
439
449
"Line number (``int``) of the filter. If *lineno* is ``None``, the filter "
440
450
"matches any line number."
441
- msgstr ""
451
+ msgstr "过滤器的行号 (``int``)。 如果 *lineno* 为 ``None``,则该过滤器将匹配任意行号。 "
442
452
443
453
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:433
444
454
msgid "Filename pattern of the filter (``str``). Read-only property."
445
- msgstr ""
455
+ msgstr "过滤器的文件名模型 (``str``)。 只读的特征属性。 "
446
456
447
457
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:437
448
458
msgid ""
449
459
"If *all_frames* is ``True``, all frames of the traceback are checked. If "
450
460
"*all_frames* is ``False``, only the most recent frame is checked."
451
461
msgstr ""
462
+ "如果 *all_frames* 为 ``True``,则回溯的所有帧都会被检查。 如果 *all_frames* 为 "
463
+ "``False``,则只有最近的帧会被检查。"
452
464
453
465
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:440
454
466
msgid ""
455
467
"This attribute has no effect if the traceback limit is ``1``. See the "
456
468
":func:`get_traceback_limit` function and :attr:`Snapshot.traceback_limit` "
457
469
"attribute."
458
470
msgstr ""
471
+ "如果回溯限制为 ``1`` 则该属性将没有效果。 参见 :func:`get_traceback_limit` 函数和 "
472
+ ":attr:`Snapshot.traceback_limit` 属性。"
459
473
460
474
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:446
461
475
msgid "Frame"
462
- msgstr ""
476
+ msgstr "帧 "
463
477
464
478
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:450
465
479
msgid "Frame of a traceback."
466
- msgstr ""
480
+ msgstr "回溯的帧。 "
467
481
468
482
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:452
469
483
msgid ""
470
484
"The :class:`Traceback` class is a sequence of :class:`Frame` instances."
471
- msgstr ""
485
+ msgstr ":class:`Traceback` 类是一个 :class:`Frame` 实例的序列。instances. "
472
486
473
487
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:456
474
488
msgid "Filename (``str``)."
@@ -484,23 +498,24 @@ msgstr "快照"
484
498
485
499
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:468
486
500
msgid "Snapshot of traces of memory blocks allocated by Python."
487
- msgstr ""
501
+ msgstr "由 Python 分配的内存块的追踪的快照。 "
488
502
489
503
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:470
490
504
msgid "The :func:`take_snapshot` function creates a snapshot instance."
491
- msgstr ""
505
+ msgstr ":func:`take_snapshot` 函数创建一个快照实例。 "
492
506
493
507
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:474
494
508
msgid ""
495
509
"Compute the differences with an old snapshot. Get statistics as a sorted "
496
510
"list of :class:`StatisticDiff` instances grouped by *key_type*."
497
511
msgstr ""
512
+ "计算与某个旧快照的差异。 获取按 *key_type* 分组的 :class:`StatisticDiff` 实例的已排序列表形式的统计信息。"
498
513
499
514
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:477
500
515
msgid ""
501
516
"See the :meth:`Snapshot.statistics` method for *key_type* and *cumulative* "
502
517
"parameters."
503
- msgstr ""
518
+ msgstr "请参阅 :meth:`Snapshot.statistics` 方法了解 *key_type* 和 *cumulative* 形参。 "
504
519
505
520
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:480
506
521
msgid ""
@@ -509,6 +524,9 @@ msgid ""
509
524
"of :attr:`StatisticDiff.count_diff`, :attr:`Statistic.count` and then by "
510
525
":attr:`StatisticDiff.traceback`."
511
526
msgstr ""
527
+ "结果将按以下值从大到小排序: :attr:`StatisticDiff.size_diff` 的绝对值, "
528
+ ":attr:`StatisticDiff.size`, :attr:`StatisticDiff.count_diff` 的绝对值, "
529
+ ":attr:`Statistic.count` 然后是 :attr:`StatisticDiff.traceback`。"
512
530
513
531
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:488
514
532
msgid "Write the snapshot into a file."
@@ -525,17 +543,20 @@ msgid ""
525
543
"instances. If *filters* is an empty list, return a new :class:`Snapshot` "
526
544
"instance with a copy of the traces."
527
545
msgstr ""
546
+ "使用已过滤的 :attr:`traces` 序列新建一个 :class:`Snapshot` 实例,*filters* 是 "
547
+ ":class:`DomainFilter` 和 :class:`Filter` 实例的列表。 如果 *filters* "
548
+ "为空列表,则返回一个包含追踪的副本的新的 :class:`Snapshot` 实例。"
528
549
529
550
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:500
530
551
msgid ""
531
552
"All inclusive filters are applied at once, a trace is ignored if no "
532
553
"inclusive filters match it. A trace is ignored if at least one exclusive "
533
554
"filter matches it."
534
- msgstr ""
555
+ msgstr "包括的所有过滤器将同时被应用,一个追踪如果没有任何包括的过滤器与其匹配则会被忽略。 一个追踪如果有至少一个排除的过滤器与其匹配将会被忽略。 "
535
556
536
557
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:504
537
558
msgid ":class:`DomainFilter` instances are now also accepted in *filters*."
538
- msgstr ""
559
+ msgstr ":class:`DomainFilter` 实例现在同样被 *filters* 所接受。 "
539
560
540
561
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:510
541
562
msgid "Load a snapshot from a file."
@@ -590,31 +611,36 @@ msgid ""
590
611
"cumulative mode can only be used with *key_type* equals to ``'filename'`` "
591
612
"and ``'lineno'``."
592
613
msgstr ""
614
+ "如果 *cumulative* 为 ``True``,则累积一个追踪的回溯的所有帧的内存块的大小和数量,而不只是最近的帧。 累积模式只能在 "
615
+ "*key_type* 等于 ``'filename'`` 和 ``'lineno'`` 的情况下使用。"
593
616
594
617
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:533
595
618
msgid ""
596
619
"The result is sorted from the biggest to the smallest by: "
597
620
":attr:`Statistic.size`, :attr:`Statistic.count` and then by "
598
621
":attr:`Statistic.traceback`."
599
622
msgstr ""
623
+ "结果将按以下值从大到小排序: :attr:`Statistic.size`, :attr:`Statistic.count` 然后是 "
624
+ ":attr:`Statistic.traceback`。"
600
625
601
626
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:540
602
627
msgid ""
603
628
"Maximum number of frames stored in the traceback of :attr:`traces`: result "
604
629
"of the :func:`get_traceback_limit` when the snapshot was taken."
605
630
msgstr ""
631
+ "保存在 :attr:`traces` 的回溯中的帧的最大数量:当快照被保存时 :func:`get_traceback_limit` 的结果。"
606
632
607
633
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:545
608
634
msgid ""
609
635
"Traces of all memory blocks allocated by Python: sequence of :class:`Trace` "
610
636
"instances."
611
- msgstr ""
637
+ msgstr "由 Python 分配的所有内存块的追踪: :class:`Trace` 实例的序列。 "
612
638
613
639
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:548
614
640
msgid ""
615
641
"The sequence has an undefined order. Use the :meth:`Snapshot.statistics` "
616
642
"method to get a sorted list of statistics."
617
- msgstr ""
643
+ msgstr "该序列的顺序是未定义的。 请使用 :meth:`Snapshot.statistics` 方法来获取统计信息的已排序列表。 "
618
644
619
645
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:553
620
646
msgid "Statistic"
@@ -639,7 +665,7 @@ msgstr "内存块数(``整形``)。"
639
665
640
666
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:569
641
667
msgid "Total size of memory blocks in bytes (``int``)."
642
- msgstr ""
668
+ msgstr "以字节数表示的内存块总计大小 (``int``)。 "
643
669
644
670
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:573
645
671
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:642
@@ -709,7 +735,7 @@ msgstr "一个内存块的跟踪信息。"
709
735
msgid ""
710
736
"The :attr:`Snapshot.traces` attribute is a sequence of :class:`Trace` "
711
737
"instances."
712
- msgstr ""
738
+ msgstr ":attr:`Snapshot.traces` 属性是一个 :class:`Trace` 实例的序列。 "
713
739
714
740
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:638
715
741
msgid "Size of the memory block in bytes (``int``)."
0 commit comments