{
    "content": [
        {
            "type": "text",
            "text": "# _tracemalloc (pydoc)\n\n**Summary:** tracemalloc - Debug module to trace memory blocks allocated by Python.\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **FUNCTIONS** (1 lines) — 8 subsections\n  - clear_traces (2 lines)\n  - get_traceback_limit (5 lines)\n  - get_traced_memory (4 lines)\n  - get_tracemalloc_memory (4 lines)\n  - is_tracing (2 lines)\n  - reset_peak (4 lines)\n  - start (5 lines)\n  - stop (4 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\ntracemalloc - Debug module to trace memory blocks allocated by Python.\n\n### FUNCTIONS\n\n#### clear_traces\n\nClear traces of memory blocks allocated by Python.\n\n#### get_traceback_limit\n\nGet the maximum number of frames stored in the traceback of a trace.\n\nBy default, a trace of an allocated memory block only stores\nthe most recent frame: the limit is 1.\n\n#### get_traced_memory\n\nGet the current size and peak size of memory blocks traced by tracemalloc.\n\nReturns a tuple: (current: int, peak: int).\n\n#### get_tracemalloc_memory\n\nGet the memory usage in bytes of the tracemalloc module.\n\nThis memory is used internally to trace memory allocations.\n\n#### is_tracing\n\nReturn True if the tracemalloc module is tracing Python memory allocations.\n\n#### reset_peak\n\nSet the peak size of memory blocks traced by tracemalloc to the current size.\n\nDo nothing if the tracemalloc module is not tracing memory allocations.\n\n#### start\n\nStart tracing Python memory allocations.\n\nAlso set the maximum number of frames stored in the traceback of a\ntrace to nframe.\n\n#### stop\n\nStop tracing Python memory allocations.\n\nAlso clear traces of memory blocks allocated by Python.\n\n### FILE\n\n(built-in)\n\n"
        }
    ],
    "structuredContent": {
        "command": "_tracemalloc",
        "section": "",
        "mode": "pydoc",
        "summary": "tracemalloc - Debug module to trace memory blocks allocated by Python.",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "clear_traces",
                        "lines": 2
                    },
                    {
                        "name": "get_traceback_limit",
                        "lines": 5
                    },
                    {
                        "name": "get_traced_memory",
                        "lines": 4
                    },
                    {
                        "name": "get_tracemalloc_memory",
                        "lines": 4
                    },
                    {
                        "name": "is_tracing",
                        "lines": 2
                    },
                    {
                        "name": "reset_peak",
                        "lines": 4
                    },
                    {
                        "name": "start",
                        "lines": 5
                    },
                    {
                        "name": "stop",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}