Linux Journal: Coverage Measurement and Profiling | Linux Today

Linux Journal: Coverage Measurement and Profiling

Written By
Web Webster
Web Webster
Sep 17, 2004

“Maybe you’ve always wondered what the gcov utility that comes
with GCC is used for, or maybe your new project at work has a
regulatory or customer requirement that your delivered software be
tested to a certain percentage of coverage, and you are looking for
how to accomplish that task. In this article, I introduce the
general ideas of coverage measurement and of performance profiling,
along with the standard GNU tools (gcov and gprof) used in these
two techniques.

“Coverage measurement is the recording of what paths were
executed in code. Coverage can be measured with different degrees
of granularity. The coarsest level is function coverage, measuring
which functions were called; then comes statement coverage,
measuring which lines of code were executed; and finally, branch
coverage, measuring which logic conditions in branch statements
were satisfied. When someone refers to coverage measurement usually
statement or branch coverage is being discussed. gcov is the
standard GNU coverage measurement tool, and it requires GCC.

Complete
Story

Related Story:
User-mode Linux
port 0.2-2.3.31 released
(Dec 20, 1999)

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.