gcov

Code coverage analysis and profiling tool that discovers untested parts of a program. Also displays a copy of source code annotated with execution frequencies of code segments. More information: <https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html>.

Debian Debian
RUN apt-get update && \ apt-get install -y gcc
Ubuntu
RUN apt-get update && \ apt-get install -y gcc
Alpine
RUN apk add gcc
Arch Arch Linux
RUN pacman -S --noconfirm gcc
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y gcc
CentOS
RUN yum install -y gcc
Fedora
RUN dnf install -y gcc
Raspbian
RUN apt-get update && \ apt-get install -y gcc
click the source code to copy install gcov on any operating system with command-not-found.com