Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - 日本語

Change language to:
English - Français - Português

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilab help >> Functions > profiling > showprofile

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)

参照

  • profile — Scilab関数の実行プロファイルを展開
  • plotprofile — Scilab関数のプロファイルを展開,表示する
  • fun2string — Scilab関数のアスキー定義を生成する
<< reset_profiling profiling bytecode >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu May 12 11:45:58 CEST 2011