Repository navigation
Expand file tree
/
Copy pathperfmaps.po
More file actions
191 lines (167 loc) · 7.89 KB
/
Copy pathperfmaps.po
File metadata and controls
191 lines (167 loc) · 7.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# python-doc bot, 2026
# Inada Naoki <songofacandy@gmail.com>, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-25 17:19+0000\n"
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
"Last-Translator: Inada Naoki <songofacandy@gmail.com>, 2026\n"
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
"ja/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ja\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid "Support for Perf Maps"
msgstr "perf map のサポート"
msgid ""
"On supported platforms (Linux and macOS), the runtime can take advantage of "
"*perf map files* to make Python functions visible to an external profiling "
"tool (such as `perf <https://perf.wiki.kernel.org/index.php/Main_Page>`_ or "
"`samply <https://github.com/mstange/samply/>`_). 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 <https://git.kernel.org/pub/scm/linux/ "
"kernel/git/torvalds/linux.git/tree/tools/perf/Documentation/jit-"
"interface.txt>`_."
msgstr ""
"対応するプラットフォーム (Linux と macOS) では、ランタイムは *perf map ファイ"
"ル* を使って Python 関数を外部のプロファイリングツール (例えば `perf "
"<https://perf.wiki.kernel.org/index.php/Main_Page>`_ や `samply <https://"
"github.com/mstange/samply/>`_) に認識させることができます。\n"
"実行中のプロセスは ``/tmp`` ディレクトリにファイルを作成でき、そのファイルの"
"エントリーによって実行可能コードの領域と名前を対応づけられます。\n"
"このインターフェースについては `Linux Perf ツールのドキュメント <https://"
"git.kernel.org/pub/scm/linux/ kernel/git/torvalds/linux.git/tree/tools/perf/"
"Documentation/jit-interface.txt>`_ に記載されています。"
msgid ""
"In Python, these helper APIs can be used by libraries and features that rely "
"on generating machine code on the fly."
msgstr ""
"Python では、実行中に機械語コードを生成するライブラリや機能が、これらの補助 "
"API を利用できます。"
#: ../../c-api/perfmaps.rst:20
msgid ""
"Note that holding an :term:`attached thread state` is not required for these "
"APIs."
msgstr ""
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 ""
"``/tmp/perf-$pid.map`` ファイルがまだ開かれていなければ開き、ファイルへの書き"
"込みをスレッドセーフにするためのロックを作成します "
"(:c:func:`PyUnstable_WritePerfMapEntry` を通じて書き込む必要があります)。\n"
"通常、この関数を明示的に呼び出す必要はありません。\n"
":c:func:`PyUnstable_WritePerfMapEntry` を使うだけで、最初の呼び出し時に状態が"
"初期化されます。"
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 ""
"成功すると ``0``、perf map ファイルの作成またはオープンに失敗すると ``-1``、"
"ロックの作成に失敗すると ``-2`` を返します。\n"
"失敗の原因の詳細は ``errno`` を確認してください。"
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 ""
"``/tmp/perf-$pid.map`` ファイルにエントリーを 1 つ書き込みます。\n"
"この関数はスレッドセーフです。\n"
"エントリーの例を示します。 ::"
msgid ""
"# address size name\n"
"7f3529fcf759 b py::bar:/run/t.py"
msgstr ""
"# アドレス サイズ 名前\n"
"7f3529fcf759 b py::bar:/run/t.py"
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 ""
"perf map ファイルがまだ開かれていなければ、エントリーを書き込む前"
"に :c:func:`PyUnstable_PerfMapState_Init` を呼び出します。\n"
"成功すると ``0``、失敗すると :c:func:`PyUnstable_PerfMapState_Init` と同じエ"
"ラーコードを返します。"
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:func:`PyUnstable_PerfMapState_Init` が開いた perf map ファイルを閉じま"
"す。\n"
"インタープリタの終了時にランタイム自身がこの関数を呼び出します。\n"
"通常、fork などの特定の状況に対処する場合を除き、この関数を明示的に呼び出す必"
"要はありません。"
msgid ""
"Open the ``/tmp/perf-$pid.map`` file and append the content of "
"*parent_filename* to it."
msgstr ""
"``/tmp/perf-$pid.map`` ファイルを開き、*parent_filename* の内容を追記します。"
#: ../../c-api/perfmaps.rst:58
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 ""
msgid "Compile the given code object using the current perf trampoline."
msgstr ""
"現在の perf トランポリンを使って、指定されたコードオブジェクトをコンパイルし"
"ます。"
#: ../../c-api/perfmaps.rst:67
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:70
msgid ""
"If no trampoline is set, falls back to normal compilation (no perf map "
"entry)."
msgstr ""
#: ../../c-api/perfmaps.rst:0
msgid "Parameters"
msgstr "パラメーター"
msgid "The code object to compile."
msgstr "コンパイルするコードオブジェクト。"
#: ../../c-api/perfmaps.rst:0
msgid "Returns"
msgstr "返り値"
#: ../../c-api/perfmaps.rst:73 ../../c-api/perfmaps.rst:89
msgid "0 on success, -1 on failure."
msgstr ""
msgid "Set whether the perf trampoline should persist after a fork."
msgstr "fork 後も perf トランポリンを保持するかどうかを設定します。"
msgid ""
"If ``enable`` is true (non-zero): perf map file remains open/valid post-"
"fork. Child process inherits all existing perf map entries."
msgstr ""
"``enable`` が真 (ゼロ以外) の場合、fork 後も perf map ファイルは開かれた有効"
"な状態を保ちます。\n"
"子プロセスは既存のすべての perf map エントリーを引き継ぎます。"
msgid ""
"If ``enable`` is false (zero): perf map closes post-fork. Child process gets "
"empty perf map."
msgstr ""
"``enable`` が偽 (ゼロ) の場合、fork 後に perf map を閉じます。\n"
"子プロセスの perf map は空になります。"
msgid "Default: false (clears on fork)."
msgstr "デフォルトは偽です (fork 時に消去します)。"
msgid "1 to enable, 0 to disable."
msgstr "有効にする場合は 1、無効にする場合は 0。"