Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

gcov

Free#15 of 27 in Test Coverage Tools

gcov: A free, self-hosted choice for detailed coverage of GCC-compiled native code. Ranked #15 of 27 in Test Coverage Tools by our editors (7.6/10); pricing: Free plan; best for GCC-based native-code coverage.

7.6/10Editor score
gcov7.6 Visit GCC

At a glance

  • Editor score
    7.6 / 10
  • Pricing
    Free plan
  • Best for
    GCC-based native-code coverage
  • Free plan
    Yes
  • Paid from
    Free
  • Coverage types
    line, function, branch, condition, prime-path, basic-block
  • Founded
    1987
  • Facts checked
    20 Sep 2026
gcov screenshot
  • Where it wins

    • Measures line, function, branch, condition, prime-path, and basic-block coverage
    • Supports C, C++, Objective-C, Fortran, Ada, D, and Go through GCC
    • Merges offline .gcda profiles and exports compressed JSON output
  • Where it doesn't

    • Works only with programs compiled by GCC
    • Provides a local command-line workflow rather than a hosted dashboard
    • Reporting and integrations are comparatively basic

Our verdict on gcov

gcov is a free, open-source command-line coverage and profiling tool for developers testing programs compiled with GCC. It instruments code through GCC coverage options, collects execution data, and produces per-source reports. The supported language range includes C, C++, Objective-C, Objective-C++, Fortran, Ada, D, and Go, making it a focused fit for GCC-based native-code projects across Linux, Windows, and macOS. Its self-hosted model also suits teams that want coverage processing to remain in their own development environment.

Coverage depth is the main reason to consider gcov. It reports line execution, function summaries, branch frequency and counts, condition analysis, prime-path coverage, and basic-block execution counts. Results can be read in human-readable .gcov files or generated as compressed JSON files with the .gcov.json.gz format. The gcov-tool utility adds offline processing and merging for .gcda profiles, which is useful when execution data is collected across separate runs or environments. Integration is centered on GCC rather than a broad third-party ecosystem.

The trade-off is a local command-line workflow instead of a hosted coverage dashboard. gcov is intended for programs built with GCC, so teams working with other compilers or seeking coverage data from other testing systems should consider a tool designed for those inputs. Its reporting and integrations are comparatively basic, with GCC as the listed integration. Choose gcov for precise, open-source coverage analysis within GCC-based builds; choose an alternative when visual dashboards, broader compiler support, or richer integrations are priorities.

Questions about gcov

What does gcov run on? Linux, Windows and macOS. It runs self-hosted.

What does gcov integrate with? 1 integration: GCC.

Who is gcov built for? Solo users, small businesses, mid-market companies and enterprises (our editorial estimate).

Your product? Our editors can test gcov in depth and publish a review, labelled as paid · from $149/mo →

gcov pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on gcc.gnu.org

gcov fact sheet

Free planYes
Paid fromFree
Coverage typesline, function, branch, condition, prime-path, basic-block
Supported languagesC, C++, Objective-C, Objective-C++, Fortran, Ada, D, Go
Report formats.gcov text, compressed JSON (.gcov.json.gz)
Pull-request annotationsNot verified
Self-hosted optionYes
Historical trendsNot verified
Coverage gatesNot verified
DeploymentSelf-hosted
PlatformsLinux, Windows, macOS
SupportDocs, Community
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
Integrations1 integrations: GCC
PricingFree plan
Websitegcc.gnu.org
Facts checked20 Sep 2026

gcov integrations

gcov lists 1 integrations on its own site.

  • GCC

Alternatives to gcov

See all gcov alternatives →

Used gcov? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used gcov for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — gcov 7.6/10

gcov is listed in our Test Coverage Tools directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/gcov/"><img src="https://www.itechguides.com/best/badge/gcov.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update