# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-09-15 09:12+0000\n" "PO-Revision-Date: 2025-09-16 00:00+0000\n" "Language-Team: German (https://app.transifex.com/python-doc/teams/5390/de/)\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../../c-api/perfmaps.rst:6 msgid "Support for Perf Maps" msgstr "" #: ../../c-api/perfmaps.rst:8 msgid "" "On supported platforms (as of this writing, only Linux), the runtime can " "take advantage of *perf map files* to make Python functions visible to an " "external profiling tool (such as `perf `_). A running process may create a file in the ``/tmp`` " "directory, which contains entries that can map a section of executable code " "to a name. This interface is described in the `documentation of the Linux " "Perf tool `_." msgstr "" #: ../../c-api/perfmaps.rst:16 msgid "" "In Python, these helper APIs can be used by libraries and features that rely " "on generating machine code on the fly." msgstr "" #: ../../c-api/perfmaps.rst:19 msgid "" "Note that holding an :term:`attached thread state` is not required for these " "APIs." msgstr "" #: ../../c-api/perfmaps.rst:23 msgid "" "Open the ``/tmp/perf-$pid.map`` file, unless it's already opened, and create " "a lock to ensure thread-safe writes to the file (provided the writes are " "done through :c:func:`PyUnstable_WritePerfMapEntry`). Normally, there's no " "need to call this explicitly; just use :c:func:" "`PyUnstable_WritePerfMapEntry` and it will initialize the state on first " "call." msgstr "" #: ../../c-api/perfmaps.rst:29 msgid "" "Returns ``0`` on success, ``-1`` on failure to create/open the perf map " "file, or ``-2`` on failure to create a lock. Check ``errno`` for more " "information about the cause of a failure." msgstr "" #: ../../c-api/perfmaps.rst:35 msgid "" "Write one single entry to the ``/tmp/perf-$pid.map`` file. This function is " "thread safe. Here is what an example entry looks like::" msgstr "" #: ../../c-api/perfmaps.rst:38 msgid "" "# address size name\n" "7f3529fcf759 b py::bar:/run/t.py" msgstr "" #: ../../c-api/perfmaps.rst:41 msgid "" "Will call :c:func:`PyUnstable_PerfMapState_Init` before writing the entry, " "if the perf map file is not already opened. Returns ``0`` on success, or the " "same error codes as :c:func:`PyUnstable_PerfMapState_Init` on failure." msgstr "" #: ../../c-api/perfmaps.rst:47 msgid "" "Close the perf map file opened by :c:func:`PyUnstable_PerfMapState_Init`. " "This is called by the runtime itself during interpreter shut-down. In " "general, there shouldn't be a reason to explicitly call this, except to " "handle specific scenarios such as forking." msgstr "" #: ../../c-api/perfmaps.rst:54 msgid "" "Open the ``/tmp/perf-$pid.map`` file and append the content of " "*parent_filename* to it." msgstr "" #: ../../c-api/perfmaps.rst:57 msgid "" "This function is available on all platforms but only generates output on " "platforms that support perf maps (currently only Linux). On other platforms, " "it does nothing." msgstr "" #: ../../c-api/perfmaps.rst:64 msgid "Compile the given code object using the current perf trampoline." msgstr "" #: ../../c-api/perfmaps.rst:66 msgid "" "The \"current\" trampoline is the one set by the runtime or the most recent :" "c:func:`PyUnstable_PerfTrampoline_SetPersistAfterFork` call." msgstr "" #: ../../c-api/perfmaps.rst:69 msgid "" "If no trampoline is set, falls back to normal compilation (no perf map " "entry)." msgstr "" #: ../../c-api/perfmaps.rst:0 msgid "Parameters" msgstr "" #: ../../c-api/perfmaps.rst:71 msgid "The code object to compile." msgstr "" #: ../../c-api/perfmaps.rst:0 msgid "Returns" msgstr "" #: ../../c-api/perfmaps.rst:72 ../../c-api/perfmaps.rst:88 msgid "0 on success, -1 on failure." msgstr "" #: ../../c-api/perfmaps.rst:78 msgid "Set whether the perf trampoline should persist after a fork." msgstr "" #: ../../c-api/perfmaps.rst:80 msgid "" "If ``enable`` is true (non-zero): perf map file remains open/valid post-" "fork. Child process inherits all existing perf map entries." msgstr "" #: ../../c-api/perfmaps.rst:82 msgid "" "If ``enable`` is false (zero): perf map closes post-fork. Child process gets " "empty perf map." msgstr "" #: ../../c-api/perfmaps.rst:85 msgid "Default: false (clears on fork)." msgstr "" #: ../../c-api/perfmaps.rst:87 msgid "1 to enable, 0 to disable." msgstr ""