Results of 1 - 10 of about 253 for memory (0.032 sec.)
- multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ — Py... 10529
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ テーマ 自動 ライト ダーク | multiprocessing.s
...hared_memory --- プロセス間で直接アクセス可能な共有メモリ ¶ ソースコード Lib/multiprocessing/shared_memory.py Added in version 3.8. この...マルチプロセッサ(SMP) を持つマシン上で実行される、ひとつ以上のプロセスから参照される共有メモリの確保、管理を行うための SharedMemory クラスを提供します。共有メモリのライフサイクル管理、とりわけ複数のプロセスにわたる場合のために、 multiprocessing.managers...モジュールでは BaseManager のサブクラス SharedMemoryManager も提供されます。 In this module, shared memory refers to "POSIX style" shared memory blocks (though is not necessar... - https://man.mtool.work/python/3.14/library/multiprocessing.shared_memory.html
- multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ — Py... 10529
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ テーマ 自動 ライト ダーク | multiprocessing.s
...hared_memory --- プロセス間で直接アクセス可能な共有メモリ ¶ ソースコード Lib/multiprocessing/shared_memory.py Added in version 3.8. この...マルチプロセッサ(SMP) を持つマシン上で実行される、ひとつ以上のプロセスから参照される共有メモリの確保、管理を行うための SharedMemory クラスを提供します。共有メモリのライフサイクル管理、とりわけ複数のプロセスにわたる場合のために、 multiprocessing.managers...モジュールでは BaseManager のサブクラス SharedMemoryManager も提供されます。 In this module, shared memory refers to "POSIX style" shared memory blocks (though is not necessar... - https://man.mtool.work/python/3.14/library/multiprocessing.shared_memory.html
- メモリ管理 — Python 3.14.8 ドキュメント 9730
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » メモリ管理 テーマ 自動 ライト ダーク | メモリ管理 ¶ 概要 ¶ Python におけるメモリ管理には、全ての Python オブジェクトとデータ構造が
...入ったプライベートヒープ (private heap) が必須です。プライベートヒープの管理は、内部的には Python メモリマネージャ (Python memory manager) が確実に行います。Python メモリマネージャには、共有 (sharing)、セグメント分割 (segmentation)、事前割り当て (preal...) といった、様々な動的記憶管理の側面を扱うために、個別のコンポーネントがあります。 最低水準層では、素のメモリ操作関数 (raw memory allocator) がオペレーティングシステムのメモリ管理機構とやりとりして、プライベートヒープ内にPython 関連の全てのデータを記憶...のような例です: PyObject * res ; char * buf = ( char * ) malloc ( BUFSIZ ); /* for I/O */ if ( buf == NULL ) return PyErr_NoMemory (); ... Do some I / O operation involving buf ... res = PyBytes_FromString ( buf ); free ( buf ); /* malloc'ed */ return r... - https://man.mtool.work/python/3.14/c-api/memory.html
- メモリ管理 — Python 3.14.8 ドキュメント 9730
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » メモリ管理 テーマ 自動 ライト ダーク | メモリ管理 ¶ 概要 ¶ Python におけるメモリ管理には、全ての Python オブジェクトとデータ構造が
...入ったプライベートヒープ (private heap) が必須です。プライベートヒープの管理は、内部的には Python メモリマネージャ (Python memory manager) が確実に行います。Python メモリマネージャには、共有 (sharing)、セグメント分割 (segmentation)、事前割り当て (preal...) といった、様々な動的記憶管理の側面を扱うために、個別のコンポーネントがあります。 最低水準層では、素のメモリ操作関数 (raw memory allocator) がオペレーティングシステムのメモリ管理機構とやりとりして、プライベートヒープ内にPython 関連の全てのデータを記憶...のような例です: PyObject * res ; char * buf = ( char * ) malloc ( BUFSIZ ); /* for I/O */ if ( buf == NULL ) return PyErr_NoMemory (); ... Do some I / O operation involving buf ... res = PyBytes_FromString ( buf ); free ( buf ); /* malloc'ed */ return r... - https://man.mtool.work/python/3.14/c-api/memory.html
- Remote debugging attachment protocol — Python 3.14.8 ドキュメント 8991
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Remote debugging attachment protocol テーマ 自動 ライト ダーク | Remote debugging attachment protocol ¶ This protocol enables external tools to at
...t sections provide a step-by-step description of the protocol, including techniques for locating interpreter structures in memory, safely accessing internal fields, and triggering code execution. Platform-specific variations are noted where applicable,...rpreters, thread states, and debugger support fields. To work with a remote Python process, a debugger must first find the memory address of the PyRuntime structure in the target process. This address can't be hardcoded or calculated from a symbol name...inary to locate the offset of the .PyRuntime section. Add the section offset to the base address to compute the address in memory. The sections below explain how to do this on each supported platform and include example code. Linux (ELF) To find the Py... - https://man.mtool.work/python/3.14/howto/remote_debugging.html
- Remote debugging attachment protocol — Python 3.14.8 ドキュメント 8991
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Remote debugging attachment protocol テーマ 自動 ライト ダーク | Remote debugging attachment protocol ¶ This protocol enables external tools to at
...t sections provide a step-by-step description of the protocol, including techniques for locating interpreter structures in memory, safely accessing internal fields, and triggering code execution. Platform-specific variations are noted where applicable,...rpreters, thread states, and debugger support fields. To work with a remote Python process, a debugger must first find the memory address of the PyRuntime structure in the target process. This address can't be hardcoded or calculated from a symbol name...inary to locate the offset of the .PyRuntime section. Add the section offset to the base address to compute the address in memory. The sections below explain how to do this on each supported platform and include example code. Linux (ELF) To find the Py... - https://man.mtool.work/python/3.14/howto/remote_debugging.html
- 変更履歴 — Python 3.14.8 ドキュメント 8891
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...name replaced with the link's. Core and Builtins ¶ gh-158583 : bytes.fromhex() and bytearray.fromhex() : Fix uninitialized memory read. Patch by Victor Stinner. gh-156204 : Fix a crash in PyErr_GivenExceptionMatches() when evaluating deeply nested exce...19 : code.InteractiveInterpreter.runsource() and the REPL now report any exception raised by compiling the source, such as MemoryError or RecursionError for too deeply nested source, instead of propagating it or printing a traceback of the REPL interna...after selecting them with the keyboard. gh-69919 : IDLE now reports any exception raised by compiling the source, such as MemoryError for too deeply nested source, instead of hanging the Shell. gh-91398 : Remove the border around the IDLE Shell sideba... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 8761
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...loc . start () # ... start your application ... snapshot1 = tracemalloc . take_snapshot () # ... call the function leaking memory ... snapshot2 = tracemalloc . take_snapshot () top_stats = snapshot2 . compare_to ( snapshot1 , 'lineno' ) print ( "[ Top...ication ... snapshot = tracemalloc . take_snapshot () top_stats = snapshot . statistics ( 'traceback' ) # pick the biggest memory block stat = top_stats [ 0 ] print ( " %s memory blocks: %.1f KiB" % ( stat . count , stat . size / 1024 )) for line in st...ceback . format (): print ( line ) Python テストスイートの出力例です (トレースバックは 25 フレームに制限されています): 903 memory blocks : 870.1 KiB File "<frozen importlib._bootstrap>" , line 716 File "<frozen importlib._bootstrap>" , line 1036 File "... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 8691
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...loc . start () # ... start your application ... snapshot1 = tracemalloc . take_snapshot () # ... call the function leaking memory ... snapshot2 = tracemalloc . take_snapshot () top_stats = snapshot2 . compare_to ( snapshot1 , 'lineno' ) print ( "[ Top...ication ... snapshot = tracemalloc . take_snapshot () top_stats = snapshot . statistics ( 'traceback' ) # pick the biggest memory block stat = top_stats [ 0 ] print ( " %s memory blocks: %.1f KiB" % ( stat . count , stat . size / 1024 )) for line in st...ceback . format (): print ( line ) Python テストスイートの出力例です (トレースバックは 25 フレームに制限されています): 903 memory blocks : 870.1 KiB File "<frozen importlib._bootstrap>" , line 716 File "<frozen importlib._bootstrap>" , line 1036 File "... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- Python support for free threading — Python 3.14.8 ドキュメント 8192
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Python support for free threading テーマ 自動 ライト ダーク | Python support for free threading ¶ Starting with the 3.13 release, CPython has supp
...h_warnings modifies the global filters list, which is not thread-safe. See the warnings module for more details. Increased memory usage ¶ The free-threaded build will typically use more memory compared to the default build. There are multiple reasons f...ize for both builds since the free-threaded build does not use additional space for the GC info. QSBR can delay freeing of memory ¶ In order to safely implement lock-free data structures, a safe memory reclamation (SMR) scheme is used, known as quiesce...nt state-based reclamation (QSBR). This means that the memory backing data structures allowing lock-free access will use QSBR, which defers the free operation, rather than immediately... - https://man.mtool.work/python/3.14/howto/free-threading-python.html