# 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 and`LineCoverage`

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`

of`uint64`

, where`N`

is the executed lines count, containing the number of executed instructions and the number of non-executed instructions.- BranchesCount
a vector

`2xN`

of`uint64`

, where`N`

is the executed lines count, containing the number of executed branches and the number of non-executed branches.- PathsCount
a vector

`1xN`

of`uint64`

, where`N`

is the executed lines count, containing the number of executed paths.

- LineCoverage
a list of

`M`

vectors of`double`

, where`M`

the number of instrumented functions, storing execution counters per function with:- LineCoverage(i)(1,j)
the number of times the line

`j`

of the function`j`

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

## Comments

Add a comment:Please login to comment this page.