Scilab 5.3.0
Please note that the recommended version of Scilab is 5.3.3. This page might be outdated.
See the recommended documentation of this function
showprofile
Scilab関数の実行プロファイルを展開し,表示する
呼び出し手順
showprofile(fun)
パラメータ
- fun
Scilab関数
説明
Scilab関数showprofileを使用するには,
Scilab関数はプロファイル用に設定されている必要があります
(exec 参照).
このような関数について,関数が実行された時に
システムは各行の実行回数と各行の実行に要したCPU時間を
計測します.
これらのデータは関数データ構造内に保存されます.
showprofile 関数は,
関数行のテキストと共に
プロファイル結果を出力します(profile参照).
関数のテキストは,fun2stringで再構築されます.
例
//関数を定義し,プロファイル用に設定 deff('x=foo(n)',['if n==0 then' ' x=[]' 'else' ' x=0' ' for k=1:n' ' s=svd(rand(n+10,n+10))' ' x=x+s(1)' ' end' 'end'],'p') //関数をコール foo(30) //実行プロファイルを取得 showprofile(foo)
| << reset_profiling | profiling | bytecode >> |