Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> 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
Report an issue
<< covMerge Coverage covStop >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 25 08:53:30 CET 2020