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

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 > add_profiling

add_profiling

プロファイル命令を関数に追加.

呼び出し手順

add_profiling(funname)

パラメータ

funname

文字列, 関数名

説明

add_profiling(funname) は, プロファイル命令を関数funnameに 追加します. この関数が実行された時に,コール数と消費時間が 各行毎に保存されます.

function x=foo(a, n)
 x=0;
 for i=1:n
   if x<10 then
     x=x+a
   else
     x=x+1
   end  
 end
 x=x^2+1
endfunction

add_profiling("foo")
foo(0.1,100) //関数を実行
profile(foo) //プロファイル情報を展開

参照

  • profile — Scilab関数の実行プロファイルを展開
  • plotprofile — Scilab関数のプロファイルを展開,表示する
  • remove_profiling — プロファイル命令を関数から削除する.
  • reset_profiling — 関数のプロファイル用カウンタをリセットする

使用される関数

この関数は Scilab 関数bytecode および walkbytecode と使用します.

Report an issue
<< profiling profiling plotprofile >>

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:
Tue Apr 02 17:37:34 CEST 2013