Skip to content

Commit 05866b0

Browse files
authored
Traducido archivo c-api/perfmaps (#3363)
Closes #3276
1 parent 553c804 commit 05866b0

File tree

1 file changed

+50
-12
lines changed

1 file changed

+50
-12
lines changed

c-api/perfmaps.po

+50-12
Original file line numberDiff line numberDiff line change
@@ -10,79 +10,112 @@ msgstr ""
1010
"Project-Id-Version: Python en Español 3.12\n"
1111
"Report-Msgid-Bugs-To: \n"
1212
"POT-Creation-Date: 2024-11-21 16:38-0300\n"
13-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15-
"Language: es\n"
13+
"PO-Revision-Date: 2025-01-31 10:04-0300\n"
14+
"Last-Translator: srmorita <fr.morac@duocuc.cl>\n"
1615
"Language-Team: es <LL@li.org>\n"
17-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
16+
"Language: es\n"
1817
"MIME-Version: 1.0\n"
1918
"Content-Type: text/plain; charset=utf-8\n"
2019
"Content-Transfer-Encoding: 8bit\n"
20+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2121
"Generated-By: Babel 2.16.0\n"
22+
"X-Generator: Poedit 3.5\n"
2223

2324
#: ../Doc/c-api/perfmaps.rst:6
2425
msgid "Support for Perf Maps"
25-
msgstr ""
26+
msgstr "Soporte para Mapeo Perf"
2627

2728
#: ../Doc/c-api/perfmaps.rst:8
2829
msgid ""
2930
"On supported platforms (as of this writing, only Linux), the runtime can "
3031
"take advantage of *perf map files* to make Python functions visible to an "
31-
"external profiling tool (such as `perf <https://perf.wiki.kernel.org/index."
32-
"php/Main_Page>`_). A running process may create a file in the ``/tmp`` "
32+
"external profiling tool (such as `perf <https://perf.wiki.kernel.org/"
33+
"index.php/Main_Page>`_). A running process may create a file in the ``/tmp`` "
3334
"directory, which contains entries that can map a section of executable code "
3435
"to a name. This interface is described in the `documentation of the Linux "
35-
"Perf tool <https://git.kernel.org/pub/scm/linux/ kernel/git/torvalds/linux."
36-
"git/tree/tools/perf/Documentation/jit-interface.txt>`_."
36+
"Perf tool <https://git.kernel.org/pub/scm/linux/ kernel/git/torvalds/"
37+
"linux.git/tree/tools/perf/Documentation/jit-interface.txt>`_."
3738
msgstr ""
39+
"En las plataformas soportadas (en el momento de escribir esto, sólo Linux), "
40+
"el tiempo de ejecución puede aprovechar *perf map files* para hacer que las "
41+
"funciones de Python sean visibles para una herramienta externa de perfiles "
42+
"(como `perf <https://perf.wiki.kernel.org/index.php/Main_Page>`_). Un "
43+
"proceso en ejecución puede crear un fichero en el directorio ``/tmp``, que "
44+
"contiene entradas que pueden asignar una sección de código ejecutable a un "
45+
"nombre. Esta interfaz se describe en la `documentación de la herramienta "
46+
"Perf de Linux <https://git.kernel.org/pub/scm/linux/ kernel/git/torvalds/"
47+
"linux.git/tree/tools/perf/Documentation/jit-interface.txt>`_."
3848

3949
#: ../Doc/c-api/perfmaps.rst:16
4050
msgid ""
4151
"In Python, these helper APIs can be used by libraries and features that rely "
4252
"on generating machine code on the fly."
4353
msgstr ""
54+
"En Python, estas API auxiliares pueden ser utilizadas por bibliotecas y "
55+
"funciones que dependen de la generación de código de máquina sobre la marcha."
4456

4557
#: ../Doc/c-api/perfmaps.rst:19
4658
msgid ""
4759
"Note that holding the Global Interpreter Lock (GIL) is not required for "
4860
"these APIs."
4961
msgstr ""
62+
"Tenga en cuenta que para estas APIs no es necesario mantener el Bloqueo "
63+
"Global del Intérprete (GIL)."
5064

5165
#: ../Doc/c-api/perfmaps.rst:23
5266
msgid ""
5367
"Open the ``/tmp/perf-$pid.map`` file, unless it's already opened, and create "
5468
"a lock to ensure thread-safe writes to the file (provided the writes are "
5569
"done through :c:func:`PyUnstable_WritePerfMapEntry`). Normally, there's no "
56-
"need to call this explicitly; just use :c:func:"
57-
"`PyUnstable_WritePerfMapEntry` and it will initialize the state on first "
58-
"call."
70+
"need to call this explicitly; just "
71+
"use :c:func:`PyUnstable_WritePerfMapEntry` and it will initialize the state "
72+
"on first call."
5973
msgstr ""
74+
"Abre el archivo ``/tmp/perf-$pid.map``, a menos que ya esté abierto, y crea "
75+
"un bloqueo para garantizar escrituras seguras para hilos en el archivo "
76+
"(siempre que las escrituras se realicen "
77+
"mediante :c:func:`PyUnstable_WritePerfMapEntry`). Normalmente, no es "
78+
"necesario llamar a esto explícitamente; solo "
79+
"use :c:func:`PyUnstable_WritePerfMapEntry` e inicializará el estado en la "
80+
"primera llamada."
6081

6182
#: ../Doc/c-api/perfmaps.rst:29
6283
msgid ""
6384
"Returns ``0`` on success, ``-1`` on failure to create/open the perf map "
6485
"file, or ``-2`` on failure to create a lock. Check ``errno`` for more "
6586
"information about the cause of a failure."
6687
msgstr ""
88+
"Retorna ``0`` en caso de éxito, ``-1`` en caso de fallo al crear/abrir el "
89+
"fichero perf map, o ``-2`` en caso de fallo al crear un bloqueo. Comprueba "
90+
"``errno`` para más información sobre la causa de un fallo."
6791

6892
#: ../Doc/c-api/perfmaps.rst:35
6993
msgid ""
7094
"Write one single entry to the ``/tmp/perf-$pid.map`` file. This function is "
7195
"thread safe. Here is what an example entry looks like::"
7296
msgstr ""
97+
"Escribe una única entrada en el fichero ``/tmp/perf-$pid.map``. Esta función "
98+
"es segura para hilos. Aquí hay un ejemplo de entrada::"
7399

100+
# creo que esto debe quedar igual. Es solo código fuente.
74101
#: ../Doc/c-api/perfmaps.rst:38
75102
msgid ""
76103
"# address size name\n"
77104
"7f3529fcf759 b py::bar:/run/t.py"
78105
msgstr ""
106+
"# address size name\n"
107+
"7f3529fcf759 b py::bar:/run/t.py"
79108

80109
#: ../Doc/c-api/perfmaps.rst:41
81110
msgid ""
82111
"Will call :c:func:`PyUnstable_PerfMapState_Init` before writing the entry, "
83112
"if the perf map file is not already opened. Returns ``0`` on success, or the "
84113
"same error codes as :c:func:`PyUnstable_PerfMapState_Init` on failure."
85114
msgstr ""
115+
"Llamará a :c:func:`PyUnstable_PerfMapState_Init` antes de escribir la "
116+
"entrada, si el fichero perf map no está ya abierto. Retorna ``0`` en caso de "
117+
"éxito, o los mismos códigos de error "
118+
"que :c:func:`PyUnstable_PerfMapState_Init` en caso de fallo."
86119

87120
#: ../Doc/c-api/perfmaps.rst:47
88121
msgid ""
@@ -91,3 +124,8 @@ msgid ""
91124
"general, there shouldn't be a reason to explicitly call this, except to "
92125
"handle specific scenarios such as forking."
93126
msgstr ""
127+
"Cierra el fichero perf map abierto "
128+
"por :c:func:`PyUnstable_PerfMapState_Init`. Esto es llamado por el propio "
129+
"tiempo de ejecución durante el cierre del intérprete. En general, no debería "
130+
"haber una razón para llamar explícitamente a esto, excepto para manejar "
131+
"escenarios específicos como la bifurcación."

0 commit comments

Comments
 (0)