profileGetInfo
Retrieve instrumentation information as a Scilab value
Syntax
prof = profileGetInfo()
Arguments
- prof
- A Scilab - ProfilerStatisticstlist with fields :- FunctionTablecontaining functions description,- FunctionCoveragecontaining functions runtime statistics and- LineCoveragecontaining 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 - .binfile 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 - 2xNof- uint64, where- Nis the executed lines count, containing the number of executed instructions and the number of non-executed instructions.
- BranchesCount
- a vector - 2xNof- uint64, where- Nis the executed lines count, containing the number of executed branches and the number of non-executed branches.
- PathsCount
- a vector - 1xNof- uint64, where- Nis the executed lines count, containing the number of executed paths.
 
- LineCoverage
- a list of - Mvectors of- double, where- Mthe number of instrumented functions, storing execution counters per function with:- LineCoverage(i)(1,j)
- the number of times the line - jof the function- jhas been executed or containing- -1if this is not an executable line.
- LineCoverage(i)(2,j)
- cumulated CPU time [in seconds] spent to execute the line - jof the function- j.
 
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 | Coverage | Lint tool (SLint) >> |