Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - Русский - 日本語
Scilab Help >> Scilab code coverage > 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

  • covStop — Removes all instrumentation data
  • covWrite — Exports runtime information to files
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:27:55 CEST 2016