EnglishFrenchSpanish

Ad


OnWorks favicon

ggcov - Online in the Cloud

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

This is the command ggcov 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

PROGRAM:

NAME


ggcov - a GNOME frontend for exploring gcov coverage data

SYNOPSIS


ggcov [GNOME options] [[-r] directory|file] ...

DESCRIPTION


Ggcov is a GTK+ GUI for exploring test coverage data produced by C and C++ programs
compiled with gcc -fprofile-arcs -ftest-coverage. So it's basically a GUI replacement for
the gcov program that comes with gcc.

Ggcov understands all the standard GTK+ and GNOME options, such as -display and
-disable-crash-dialog. All other arguments are used to specify how to find coverage data
files. The arguments can combinations of:

directory
The directory is scanned for source files, which are handled as if they had been
specified on the commandline (except that missing coverage data files are silently
ignored). If the -r flag is in effect, sub-directories are scanned recursively.
Multiple directories can be specified and are scanned in the order given.

executable
The executable file is scanned for debugging records which contain source file
names, and each source file which exists is handled as if it had been specified on
the command line (except that missing coverage data files are silently ignored).
Any shared libraries on which the executable depends are also scanned. Multiple
executables can be specified and are scanned in the order given. This feature is
only available on some platforms (for example, i386-linux).

source-file
Is any regular file ending in one of the file extensions .c, .cc, .cxx, .cpp, or
.C. Source files are matched to their corresponding coverage data files (.gcno and
.gcda files, or .bb, .bbg, and .da files with older compilers) and object files by
searching for a file of the same basename and the appropriate extension first in
the same directory as the source file and then in all the directories specified on
the command line (in the order they were specified).

If no arguments are given, ggcov shows a file selection dialog so you can select one
directory, executable, or source file.

Directories, executables, or source files can also be added after ggcov is started by
dragging and dropping them from a GNOME Nautilus window onto any ggcov window.

OPTIONS


-o dir, --object-directory=dir
Add the directory dir to the search path for object files and coverage data files.

-p dir, --gcda-prefix=dir
Look for runtime coverage data files (.gcda files) underneath the directory dir
instead of next to the corresponding .c files. See the example in the ggcov-run(1)
manpage.

-r, --recursive
When a directory is specified on the command line, search for coverage data files
recursively in all child directories.

-w windows, --initial-windows=windows
Open the named windows when ggcov starts. Window names are summary, files,
functions, calls, callbutterfly, callgraph, lego, source, and reports. The default
window is summary.

-X symbols, --suppress-ifdef=symbols
Do not include in statistics or summaries, code inside C pre-processor directives
which depend on any of the given symbols. One or more symbols may be given,
separated by commas or whitespace. Ggcov understands the following subset of the C
pre-processor command set:

· #if SYMBOL
· #if defined(SYMBOL)
· #ifdef SYMBOL
· #ifndef SYMBOL
· #else
· #endif

For example, -X DEBUG will suppress the fprintf() call in this code:

unsigned int
my_function(unsigned int x)
{
x += 42;
#ifdef DEBUG
fprintf(stderr, "my_function: x=%u\n", x);
#endif
return x;
}

This option is useful for suppressing test infrastructure code, debugging code, or
other code which is compiled into the coverage test executable but whose coverage
is not significant.

-Y words, --suppress-comment=words
Do not include in statistics or summaries, code on lines which also contains a
single-line comment comprising only one of the given words. One or more symbols
may be given, separated by commas or whitespace. For example, specifying -Y
IGNOREME will suppress the assert() in this code:

unsigned int
my_function(unsigned int x)
{
x += 42;
assert(x >= 42); /* IGNOREME */
return x;
}

This option is useful for suppressing test infrastructure code, debugging code, or
other code which is compiled into the coverage test executable but whose coverage
is not significant.

-Z startword,endword,...

--suppress-comment-between=startword,endword,...
Do not include in statistics or summaries, code on lines between those containing a
single-line comment comprising only startword and the next single-line comment
comprising only endword. Two or more symbols may be given, in pairs, separated by
commas or whitespace. For example, -Z STARTIGNORE,ENDIGNORE will suppress the
entire function in this code:

/* STARTIGNORE */
unsigned int
my_function(unsigned int x)
{
x += 42;
return x;
}
// ENDIGNORE

This option is useful for suppressing test infrastructure code, debugging code, or
other code which is compiled into the coverage test executable but whose coverage
is not significant.

EXAMPLES


View coverage data for all the available source in an executable (on some platforms only):

ggcov a.out

View coverage data for all the C source in the current directory, suppressing code which
depends on the symbols DEBUG or TEST:

ggcov -X DEBUG,TEST *.c

View coverage data for all the C source in one directory where the object files and test
coverage data files are in different directories:

ggcov /foo/obj/ /foo/cov-data/ /foo/src/

Use ggcov online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

  • 1
    abidiff
    abidiff
    abidiff - compare ABIs of ELF files
    abidiff compares the Application Binary
    Interfaces (ABI) of two shared libraries
    in ELF format. It emits a meaningful
    repor...
    Run abidiff
  • 2
    abidw
    abidw
    abidw - serialize the ABI of an ELF
    file abidw reads a shared library in ELF
    format and emits an XML representation
    of its ABI to standard output. The
    emitted ...
    Run abidw
  • 3
    copac2xml
    copac2xml
    bibutils - bibliography conversion
    utilities ...
    Run copac2xml
  • 4
    copt
    copt
    copt - peephole optimizer SYSNOPIS:
    copt file.. DESCRIPTION: copt is a
    general-purpose peephole optimizer. It
    reads code from its standard input and
    writes an ...
    Run copt
  • 5
    gather_stx_titles
    gather_stx_titles
    gather_stx_titles - gather title
    declarations from Stx documents ...
    Run gather_stx_titles
  • 6
    gatling-bench
    gatling-bench
    bench - http benchmark ...
    Run gatling-bench
  • More »

Ad