OnWorks favicon

gcovr - Online in the Cloud

Run gcovr in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command gcovr that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



gcovr - generate simple coverage reports


gcovr [options]


A utility to run gcov and generate a simple report that summarizes the coverage


-h, --help
show this help message and exit

Print the version number, then exit

-v, --verbose
Print progress messages

Specify the directory that contains the gcov data files. gcovr must be able to
identify the path between the *.gcda files and the directory where gcc was
originally run. Normally, gcovr can guess correctly. This option overrides
gcovr's normal path detection and can specify either the path from gcc to the gcda
file (i.e. what was passed to gcc's '-o' option), or the path from the gcda file to
gcc's original working directory.

-o OUTPUT, --output=OUTPUT
Print output to this filename

-k, --keep
Keep the temporary *.gcov files generated by gcov. By default, these are deleted.

-d, --delete
Delete the coverage files after they are processed. These are generated by the
users's program, and by default gcovr does not remove these files.

-f FILTER, --filter=FILTER
Keep only the data files that match this regular expression

-e EXCLUDE, --exclude=EXCLUDE
Exclude data files that match this regular expression

Keep only gcov data files that match this regular expression

Exclude gcov data files that match this regular expression

-r ROOT, --root=ROOT
Defines the root directory for source files. This is also used to filter the
files, and to standardize the output.

-x, --xml
Generate XML instead of the normal tabular output.

Generate pretty XML instead of the normal dense format.

--html Generate HTML instead of the normal tabular output.

Generate HTML output for source file coverage.

-b, --branches
Tabulate the branch coverage instead of the line coverage.

-u, --sort-uncovered
Sort entries by increasing number of uncovered lines.

-p, --sort-percentage
Sort entries by decreasing percentage of covered lines.

Defines the name/path to the gcov executable [defaults to the GCOV environment
variable, if present; else 'gcov'].

Exclude from coverage branches which are marked to be excluded by LCOV/GCOV markers
or are determined to be from lines containing only compiler-generated "dead" code.


Copyright (2013) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with
Sandia Corporation, the U.S. Government retains certain rights in this software.

Use gcovr online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Osu! is a simple rhythm game with a well
    thought out learning curve for players
    of all skill levels. One of the great
    aspects of Osu! is that it is
    Download Osu!
  • 2
    LIBPNG: PNG reference library
    LIBPNG: PNG reference library
    Reference library for supporting the
    Portable Network Graphics (PNG) format.
    Audience: Developers. Programming
    Language: C. This is an application that
    can also...
    Download LIBPNG: PNG reference library
  • 3
    Metal detector based on  RP2040
    Metal detector based on RP2040
    Based on Raspberry Pi Pico board, this
    metal detector is included in pulse
    induction metal detectors category, with
    well known advantages and disadvantages.
    Download Metal detector based on RP2040
  • 4
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 5
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 6
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • More »

Linux commands