npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@coverage.rocks/geninfo

v1.16.0

Published

------------------------------------------------- - README file for the LTP GCOV extension (LCOV) - - Last changes: 2022-06-03 - -------------------------------------------------

Downloads

1

Readme


  • README file for the LTP GCOV extension (LCOV) -
  • Last changes: 2022-06-03 -

Description

LCOV is an extension of GCOV, a GNU tool which provides information about what parts of a program are actually executed (i.e. "covered") while running a particular test case. The extension consists of a set of Perl scripts which build on the textual GCOV output to implement the following enhanced functionality:

* HTML based output: coverage rates are additionally indicated using bar
  graphs and specific colors.

* Support for large projects: overview pages allow quick browsing of
  coverage data by providing three levels of detail: directory view,
  file view and source code view.

LCOV was initially designed to support Linux kernel coverage measurements, but works as well for coverage measurements on standard user space applications.

Further README contents

  1. Included files

  2. Installing LCOV

  3. An example of how to access kernel coverage data

  4. An example of how to access coverage data for a user space program

  5. Questions and Comments

  6. Important files


README - This README file CHANGES - List of changes between releases bin/lcov - Tool for capturing LCOV coverage data bin/genhtml - Tool for creating HTML output from LCOV data bin/gendesc - Tool for creating description files as used by genhtml bin/geninfo - Internal tool (creates LCOV data files) bin/genpng - Internal tool (creates png overviews of source files) bin/install.sh - Internal tool (takes care of un-/installing) man - Directory containing man pages for included tools example - Directory containing an example to demonstrate LCOV lcovrc - LCOV configuration file Makefile - Makefile providing 'install' and 'uninstall' targets

  1. Installing LCOV

The LCOV package is available as either RPM or tarball from:

https://github.com/linux-test-project/lcov/releases

To install the tarball, unpack it to a directory and run:

make install

Use Git for the most recent (but possibly unstable) version:

git clone https://github.com/linux-test-project/lcov.git

Change to the resulting lcov directory and type:

make install

  1. An example of how to access Linux kernel coverage data

Requirements: Follow the Linux kernel coverage setup instructions at:

https://docs.kernel.org/dev-tools/gcov.html

As root, do the following:

a) Resetting counters

 lcov --zerocounters

b) Capturing the current coverage state to a file

 lcov --capture --output-file kernel.info

c) Getting HTML output

 genhtml kernel.info

Point the web browser of your choice to the resulting index.html file.

  1. An example of how to access coverage data for a user space program

Requirements: compile the program in question using GCC with the options -fprofile-arcs and -ftest-coverage. During linking, make sure to specify -lgcov or -coverage.

Assuming the compile directory is called "appdir", do the following:

a) Resetting counters

 lcov --directory appdir --zerocounters

b) Capturing the current coverage state to a file

 lcov --directory appdir --capture --output-file app.info

 Note that this step only works after the application has
 been started and stopped at least once. Otherwise lcov will
 abort with an error mentioning that there are no data/.gcda files.

c) Getting HTML output

 genhtml app.info

Point the web browser of your choice to the resulting index.html file.

Please note that independently of where the application is installed or from which directory it is run, the --directory statement needs to point to the directory in which the application was compiled.

For further information on the gcc profiling mechanism, please also consult the gcov man page.

  1. Questions and comments

See the included man pages for more information on how to use the LCOV tools.

In case of further questions, feel free to open a new issue using the issue tracker on the LCOV code repository site at:

https://github.com/linux-test-project/lcov