Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
profileGetInfo
Retrieve instrumentation information as a Scilab value
Syntax
prof = profileGetInfo()
Arguments
- prof
A Scilab
ProfilerStatistics
tlist with fields :FunctionTable
containing functions description,FunctionCoverage
containing functions runtime statistics andLineCoverage
containing line coverage per function.
Description
This command retrieve the profiled information as a Scilab data-structure which contains function information, function statistics and line coverage.
The tlist ProfilerStatistics
contains:
- FunctionTable
a struct of profiled functions information containing:
- FunctionName
the function name.
- FileName
the macro
.bin
file used to defined the function.- FirstLine
the number of the first executed line of the macro.
- LibraryName
the library name (with its lib suffix) containing the function.
- ParentIndex
index to the parent function for inner functions.
- FunctionCoverage
a struct of profiled functions information containing:
- NumCalls
the number of call to this function.
- TotalTime
the time spent in seconds within this function.
- InstructionsCount
a vector
2xN
ofuint64
, whereN
is the executed lines count, containing the number of executed instructions and the number of non-executed instructions.- BranchesCount
a vector
2xN
ofuint64
, whereN
is the executed lines count, containing the number of executed branches and the number of non-executed branches.- PathsCount
a vector
1xN
ofuint64
, whereN
is the executed lines count, containing the number of executed paths.
- LineCoverage
a list of
M
vectors ofdouble
, whereM
the number of instrumented functions, storing execution counters per function with:- LineCoverage(i)(1,j)
the number of times the line
j
of the functionj
has been executed or containing-1
if this is not an executable line.- LineCoverage(i)(2,j)
cumulated CPU time [in seconds] spent to execute the line
j
of the functionj
.
See also
- profile — General information about instrumentation capabilities
- profileEnable — Add instrumentation to a function, a library or all available functions
- profileDisable — Remove instrumentation from a function, a library or remove all instrumentation
Report an issue | ||
<< profileEnable | Scilab code instrumentation | Lint tool (SLint) >> |