Results of 1 - 10 of about 95 for lineno (0.007 sec.)
- DTrace と SystemTap で CPython を測定する — Python 3.14.8 ドキュメント 11230
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » DTrace と SystemTap で CPython を測定する テーマ 自動 ライト ダーク | DTrace と SystemTap で CPython を測定する ¶ author : David Malcolm author :
...に使えます: probe process("python").mark("function__entry") { filename = user_string($arg1); funcname = user_string($arg2); lineno = $arg3; printf("%s => %s in %s:%d\\n", thread_indent(1), funcname, filename, lineno); } probe process("python").mark("fun...ction__return") { filename = user_string($arg1); funcname = user_string($arg2); lineno = $arg3; printf("%s <= %s in %s:%d\\n", thread_indent(-1), funcname, filename, lineno); } この例は次のように実行できます:...entry") { (assuming a debug build of CPython 3.6) 利用可能な静的マーカー ¶ function__entry(str filename, str funcname, int lineno) このマーカーは Python の関数の実行が開始されたことを示しています。 このマーカーは、ピュア Python (バイトコード) の関数でし... - https://man.mtool.work/python/3.14/howto/instrumentation.html
- DTrace と SystemTap で CPython を測定する — Python 3.14.8 ドキュメント 10980
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » DTrace と SystemTap で CPython を測定する テーマ 自動 ライト ダーク | DTrace と SystemTap で CPython を測定する ¶ author : David Malcolm author :
...に使えます: probe process("python").mark("function__entry") { filename = user_string($arg1); funcname = user_string($arg2); lineno = $arg3; printf("%s => %s in %s:%d\\n", thread_indent(1), funcname, filename, lineno); } probe process("python").mark("fun...ction__return") { filename = user_string($arg1); funcname = user_string($arg2); lineno = $arg3; printf("%s <= %s in %s:%d\\n", thread_indent(-1), funcname, filename, lineno); } この例は次のように実行できます:...entry") { (assuming a debug build of CPython 3.6) 利用可能な静的マーカー ¶ function__entry(str filename, str funcname, int lineno) このマーカーは Python の関数の実行が開始されたことを示しています。 このマーカーは、ピュア Python (バイトコード) の関数でし... - https://man.mtool.work/python/3.14/howto/instrumentation.html
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 10808
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
...xpr value ) | Pass | Break | Continue -- col_offset is the byte offset in the utf8 string the parser uses attributes ( int lineno , int col_offset , int ? end_lineno , int ? end_col_offset ) -- BoolOp() can use left & right? expr = BoolOp ( boolop op ,...lower , expr ? upper , expr ? step ) -- col_offset is the byte offset in the utf8 string the parser uses attributes ( int lineno , int col_offset , int ? end_lineno , int ? end_col_offset ) expr_context = Load | Store | Del boolop = And | Or operator...pr * ifs , int is_async ) excepthandler = ExceptHandler ( expr ? type , identifier ? name , stmt * body ) attributes ( int lineno , int col_offset , int ? end_lineno , int ? end_col_offset ) arguments = ( arg * posonlyargs , arg * args , arg ? vararg ,... - https://man.mtool.work/python/3.14/library/ast.html
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 10808
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
...xpr value ) | Pass | Break | Continue -- col_offset is the byte offset in the utf8 string the parser uses attributes ( int lineno , int col_offset , int ? end_lineno , int ? end_col_offset ) -- BoolOp() can use left & right? expr = BoolOp ( boolop op ,...lower , expr ? upper , expr ? step ) -- col_offset is the byte offset in the utf8 string the parser uses attributes ( int lineno , int col_offset , int ? end_lineno , int ? end_col_offset ) expr_context = Load | Store | Del boolop = And | Or operator...pr * ifs , int is_async ) excepthandler = ExceptHandler ( expr ? type , identifier ? name , stmt * body ) attributes ( int lineno , int col_offset , int ? end_lineno , int ? end_col_offset ) arguments = ( arg * posonlyargs , arg * args , arg ? vararg ,... - https://man.mtool.work/python/3.14/library/ast.html
- bdb --- デバッガーフレームワーク — Python 3.14.8 ドキュメント 9716
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » bdb --- デバッガーフレームワーク テーマ 自動 ライト ダーク | bdb --- デバッガーフレームワーク ¶ ソースコー
...ある、次の行でストップします。 set_return ( frame ) ¶ 指定されたフレームから抜けるときにストップします。 set_until ( frame , lineno = None ) ¶ 現在の行番号よりも大きい lineno に到達したとき、あるいは、現在のフレームから戻るときにストップします。 set_trac...ドは、何か悪いことがあればエラーメッセージを含む文字列を返し、すべてが順調であれば None を返します。 set_break ( filename , lineno , temporary = False , cond = None , funcname = None ) ¶ 新しいブレークポイントを設定します。引数の lineno 行が filename に...ジを返します。 filename は、 canonic() メソッドで説明されているような、標準形である必要があります。 clear_break ( filename , lineno ) ¶ filename の lineno 行にあるブレークポイントを削除します。もしブレークポイントが無かった場合、エラーメッセージを返します... - https://man.mtool.work/python/3.14/library/bdb.html
- bdb --- デバッガーフレームワーク — Python 3.14.8 ドキュメント 9387
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » bdb --- デバッガーフレームワーク テーマ 自動 ライト ダーク | bdb --- デバッガーフレームワーク ¶ ソースコー
...ある、次の行でストップします。 set_return ( frame ) ¶ 指定されたフレームから抜けるときにストップします。 set_until ( frame , lineno = None ) ¶ 現在の行番号よりも大きい lineno に到達したとき、あるいは、現在のフレームから戻るときにストップします。 set_trac...ドは、何か悪いことがあればエラーメッセージを含む文字列を返し、すべてが順調であれば None を返します。 set_break ( filename , lineno , temporary = False , cond = None , funcname = None ) ¶ 新しいブレークポイントを設定します。引数の lineno 行が filename に...ジを返します。 filename は、 canonic() メソッドで説明されているような、標準形である必要があります。 clear_break ( filename , lineno ) ¶ filename の lineno 行にあるブレークポイントを削除します。もしブレークポイントが無かった場合、エラーメッセージを返します... - https://man.mtool.work/python/3.14/library/bdb.html
- warnings --- 警告の制御 — Python 3.14.8 ドキュメント 9215
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » warnings --- 警告の制御 テーマ 自動 ライト ダーク | warnings --- 警告の制御 ¶ ソースコード: Lib/warning
...ます; 一致したフィルタ仕様がその警告の処理方法を決定します。フィルタの各エントリは ( action , message , category , module , lineno ) からなるタプルです。ここで: action は以下の文字列のうちの一つです: 値 処理方法 "default" print the first occurrence of m...e fully qualified module name must be equal to (case-sensitively), ignoring any whitespace at the start or end of module . lineno は整数で、警告が発生した場所の行番号に一致しなければなりません。 0 の場合はすべての行と一致します。 Warning クラスは組み込...a warning is considered a repeat: "default" : A warning is considered a repeat only if the ( message , category , module , lineno ) are all the same. "module" : A warning is considered a repeat if the ( message , category , module ) are the same, ignor... - https://man.mtool.work/python/3.14/library/warnings.html
- warnings --- 警告の制御 — Python 3.14.8 ドキュメント 9215
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » warnings --- 警告の制御 テーマ 自動 ライト ダーク | warnings --- 警告の制御 ¶ ソースコード: Lib/warning
...ます; 一致したフィルタ仕様がその警告の処理方法を決定します。フィルタの各エントリは ( action , message , category , module , lineno ) からなるタプルです。ここで: action は以下の文字列のうちの一つです: 値 処理方法 "default" print the first occurrence of m...e fully qualified module name must be equal to (case-sensitively), ignoring any whitespace at the start or end of module . lineno は整数で、警告が発生した場所の行番号に一致しなければなりません。 0 の場合はすべての行と一致します。 Warning クラスは組み込...a warning is considered a repeat: "default" : A warning is considered a repeat only if the ( message , category , module , lineno ) are all the same. "module" : A warning is considered a repeat if the ( message , category , module ) are the same, ignor... - https://man.mtool.work/python/3.14/library/warnings.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 8965
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...c . start () # ... run your application ... snapshot = tracemalloc . take_snapshot () top_stats = snapshot . statistics ( 'lineno' ) print ( "[ Top 10 ]" ) for stat in top_stats [: 10 ]: print ( stat ) Python テストスイートの出力例です: [ Top 10 ] < fr...e function leaking memory ... snapshot2 = tracemalloc . take_snapshot () top_stats = snapshot2 . compare_to ( snapshot1 , 'lineno' ) print ( "[ Top 10 differences ]" ) for stat in top_stats [: 10 ]: print ( stat ) Python テストスイートのテストを実行する...上位10を整形化して表示するコードです: import linecache import os import tracemalloc def display_top ( snapshot , key_type = 'lineno' , limit = 10 ): snapshot = snapshot . filter_traces (( tracemalloc . Filter ( False , "<frozen importlib._bootstrap>" ),... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 8715
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...c . start () # ... run your application ... snapshot = tracemalloc . take_snapshot () top_stats = snapshot . statistics ( 'lineno' ) print ( "[ Top 10 ]" ) for stat in top_stats [: 10 ]: print ( stat ) Python テストスイートの出力例です: [ Top 10 ] < fr...e function leaking memory ... snapshot2 = tracemalloc . take_snapshot () top_stats = snapshot2 . compare_to ( snapshot1 , 'lineno' ) print ( "[ Top 10 differences ]" ) for stat in top_stats [: 10 ]: print ( stat ) Python テストスイートのテストを実行する...上位10を整形化して表示するコードです: import linecache import os import tracemalloc def display_top ( snapshot , key_type = 'lineno' , limit = 10 ): snapshot = snapshot . filter_traces (( tracemalloc . Filter ( False , "<frozen importlib._bootstrap>" ),... - https://man.mtool.work/python/3.14/library/tracemalloc.html