<< covMerge Performances des programmes covStop >>

Scilab Help >> Performances des programmes > covStart

covStart

Instruments some macros to store runtime information on code coverage and execution time

Syntax

covStart(paths
covStart(lib)
covStart([path ; lib])
covStart(macro)
covStart("all")

Arguments

paths

string paths to identify macros

lib

a library or a string which is a library name

macro

a specific function (as a string name or a function value)

"all"

special argument to instrument all the loaded macros

Description

Instruments the passed arguments to store runtime informations on execution. These informations can be latter exported by calling covWrite. To remove any instrumentation data covStop can be used.

You can either select a set of function or all the available one on a specific call. The "all" analysis is useful to have a global overview and later specific informations can be produced for one or a set of identified functions.

Examples

covStart(isempty)                      // instrument isempty by macro value
for i=1:1e5; isempty(i); end           // run
covWrite("html", "TMPDIR/coverage")    // write runtime information to a directory
covStop();                             // remove any instrumentation

See also


Report an issue
<< covMerge Performances des programmes covStop >>