Results of 1 - 10 of about 20 for Stats (0.006 sec.)
- The Python Profilers 15685
- The Python Profilers Source code: Lib/profile.py and Lib/pstats.py Introduction to the profilers cProfile and profile provide deterministic profiling of Python programs. A profile is a set of statistics that describes how often and for how
...long various parts of the program executed. These statistics can be formatted into reports via the pstats module. The Python standard library provides two different implementations of the same profiling interface: cProfile is re...le by specifying a filename to the run() function: import cProfile import re cProfile . run ( 're.compile("foo|bar")' , 'restats' ) The pstats.Stats class reads profile results from a file and formats them in various ways. The files cProfile and profi...py ) -o <output_file> Writes the profile results to a file instead of to stdout. -s <sort_order> Specifies one of the sort_stats() sort values to sort the output by. This only applies when -o is not supplied. -m <module> Specifies that a module is bei... - https://man.mtool.work/python/3.14/library/profile.html
- tracemalloc --- メモリ割り当ての追跡 9635
- tracemalloc --- メモリ割り当ての追跡 Added in version 3.4. ソースコード: Lib/tracemalloc.py tracemallocモジュールは、Python が割り当てたメモリブロックをトレースするためのデバッグツールです。このモジュールは以下の情報を提供します。 オブジェク
...port tracemalloc tracemalloc . start () # ... アプリケーションを実行する ... snapshot = tracemalloc . take_snapshot () top_stats = snapshot . statistics ( 'lineno' ) print ( "[ Top 10 ]" ) for stat in top_stats [: 10 ]: print ( stat ) Python テストスイ...tracemalloc . take_snapshot () # ... メモリリークが起きる関数を呼び出す ... snapshot2 = tracemalloc . take_snapshot () top_stats = snapshot2 . compare_to ( snapshot1 , 'lineno' ) print ( "[ Top 10 differences ]" ) for stat in top_stats [: 10 ]: print...# Store 25 frames tracemalloc . start ( 25 ) # ... run your application ... snapshot = tracemalloc . take_snapshot () top_stats = snapshot . statistics ( 'traceback' ) # pick the biggest memory block stat = top_stats [ 0 ] print ( " %s memory blocks:... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- 3. Python を構成する 8615
- 3. Python を構成する 3.1. ビルド要件 CPython をビルドするためには、次のものが必要です: C11 コンパイラ。 C11 オプション機能 は不要です。 Windows では、 Microsoft Visual Studio 2017 以降が必要です。 IEEE 754 浮動小数点数と 浮動小数点 Not-a-Nu
...yes : pkg-config は必須です。 no : pkg-config が存在しても、 configure は使用しません。 Added in version 3.11. --enable-pystats Python 内部のパフォーマンス統計の収集を有効にします。 デフォルトでは統計の収集は無効です。 Python 起動時に統計の収集を有効...にするには、 python3 -X pystats コマンドを使用するか、環境変数 PYTHONSTATS=1 を設定してください。 統計の収集が有効で、統計がクリアされていなければ、Python...の終了時に統計を出力します。 効果: -X pystats コマンドラインオプションを追加します。 PYTHONSTATS 環境変数を追加します。 Py_STATS マクロを定義します。 sys モジュールに関... - https://man.mtool.work/python/3.14/using/configure.html
- Debugging and Profiling 8275
- Debugging and Profiling ここに含まれるライブラリは Python での開発を手助けします。 デバッガを使うと、コードのステップ実行やスタックフレームの解析、ブレークポイントの設定などができます。 プロファイラはコードを実行して実行時間の詳しい内訳を示
...コマンド The Python Profilers Introduction to the profilers Instant User's Manual profile and cProfile Module Reference The Stats Class What Is Deterministic Profiling? 制限事項 キャリブレーション (補正) カスタムな時刻取得用関数を使う timeit --- 小さな... - https://man.mtool.work/python/3.14/library/debug.html
- ssl --- ソケットオブジェクト用の TLS/SSL ラッパー 8275
- ssl --- ソケットオブジェクト用の TLS/SSL ラッパー Source code: Lib/ssl.py このモジュールは、クライアント側とサーバー側の両方のネットワークソケットで Transport Layer Security (「Secure Sockets Layer」としてもよく知られています) による暗号化と
...後に再設定しなければスレッドセーフです。 SSLContext オブジェクトは以下のメソッドと属性を持っています: SSLContext. cert_store_stats ( ) ロードされた X.509 証明書の数、CA 証明書としてフラグが設定された X.509 証明書の数、証明書失効リストの数を辞書として取得...します。 一つの CA と他の一つの証明書を持ったコンテキストでの例です: >>> context . cert_store_stats () {'crl': 0, 'x509_ca': 1, 'x509': 2} Added in version 3.4. SSLContext. load_cert_chain ( certfile , keyfile = None , pas...タンスでこの属性を上書きすると、独自の SSLObject サブクラスを返すようにできます。 Added in version 3.7. SSLContext. session_stats ( ) このコンテキストが作成または管理する SSL セッションの統計を取得します。 各 情報項目 の名前を数値に対応付ける辞書を返し... - https://man.mtool.work/python/3.14/library/ssl.html
- Python 初期化設定 8173
- Python 初期化設定 PyInitConfig C API Added in version 3.14. Python は Py_InitializeFromInitConfig() で初期化できます。 Py_RunMain() 関数は、カスタマイズされた Python プログラムを書くために使用できます。 Initialization, Finalization, and Thr
...coding" legacy_windows_fs_encoding bool 読み出し専用 "legacy_windows_stdio" legacy_windows_stdio bool 読み出し専用 "malloc_stats" malloc_stats bool 読み出し専用 "module_search_paths" module_search_paths list[str] 公開 "optimization_level" optimization...noptions" warnoptions list[str] 公開 "write_bytecode" write_bytecode bool 公開 "xoptions" xoptions dict[str, str] 公開 "_pystats" _pystats bool 読み出し専用 可視性: 公開: PyConfig_Get() で取得でき、 PyConfig_Set() で設定できます。 読み取り専用: PyConf...OWS マクロを使えます。 デフォルト: 0 。 PEP 528 (Change Windows console encoding to UTF-8) も参照してください。 int malloc_stats ゼロ以外の場合、終了時に Python の pymalloc メモリアロケーター の統計をダンプします。 PYTHONMALLOCSTATS 環境変数によって 1... - https://man.mtool.work/python/3.14/c-api/init_config.html
- gc --- ガベージコレクターインターフェース 8173
- gc --- ガベージコレクターインターフェース このモジュールは、循環ガベージコレクタの無効化・検出頻度の調整・デバッグオブションの設定などを行うインターフェースを提供します。また、検出した到達不能オブジェクトのうち、解放する事ができないオブジェ
...の動作を維持するために、世代 1 が再導入されました。 引数 generation で 監査イベント gc.get_objects を送出します。 gc. get_stats ( ) インタプリタが開始してからの、世代ごと回収統計を持つ辞書の、3 世代ぶんのリストを返します。キーの数は将来変わるかもしれ...ンがそれらを特定し消去できるようにする。 Added in version 3.3. 以下は set_debug() に指定することのできる定数です: gc. DEBUG_STATS 検出中に統計情報を出力します。この情報は、検出頻度を最適化する際に有益です。 gc. DEBUG_COLLECTABLE 見つかった回収可能オブジ... - https://man.mtool.work/python/3.14/library/gc.html
- importlib --- import の実装 8173
- importlib --- import の実装 Added in version 3.1. ソースコード: Lib/importlib/__init__.py はじめに importlib パッケージには 3 つの目的があります。 1 つ目は import 文 (ひいては __import__() 関数) の実装を Python のソースコードで提供することで
...コンパイラによる解析の工程をなくして速度を上げる最適化です。 ですから、バイトコード特有の API は公開されていません。 path_stats ( path ) 指定されたパスについてのメタデータを含む dict を返す、オプションの抽象メソッドです。サポートされる辞書のキーは: '...定されたパスの更新時刻を返す、オプションの抽象メソッドです。 バージョン 3.3 で非推奨: このメソッドは非推奨で、代わりに path_stats() を使います。 実装する必要はありませんが、互換性のために引き続き利用できます。 パスを扱えない場合は OSError を送出してくだ...ルの名前です。 path ソースファイルへのパスです。 is_package ( fullname ) path がパッケージを表すとき True を返します。 path_stats ( path ) importlib.abc.SourceLoader.path_stats() の具象実装です。 set_data ( path , data ) importlib.abc.SourceLoader.set_... - https://man.mtool.work/python/3.14/library/importlib.html
- カプセル 8055
- カプセル これらのオブジェクトの使い方については 拡張モジュールに C API を提供する を参照してください。 Added in version 3.1. type PyCapsule PyObject のこのサブタイプは不透明な値を表します。 C 拡張モジュールから Python のコードを経由して別の
...を、失敗したら例外を設定して非 0 を返します。 他のマニュアルの関連ページ PHP trader.requirements PHP yac.requirements PHP stats.requirements PHP context.zip PHP solrquery.destruct PHP stream.contexts... - https://man.mtool.work/python/3.14/c-api/capsule.html
- fractions --- 有理数 8004
- fractions --- 有理数 ソースコード: Lib/fractions.py fractions モジュールは有理数の演算をサポートします。 Fraction インスタンスは、2 つの有理数、1 つの数値、または文字列から作成できます。 class fractions. Fraction ( numerator = 0 , denominat
...参考 numbers モジュール 数値の塔を作り上げる抽象基底クラス。 他のマニュアルの関連ページ PHP floor() Linux JM floor(3) PHP stats_rand_gen_f() Linux JM random(6) PHP mongodb-bson-decimal128.construct PHP gearmanjob.sendstatus... - https://man.mtool.work/python/3.14/library/fractions.html