CG\_DIFF(1) cg\_diff CG\_DIFF(1)

# [NAME](#NAME)

cg\_diff - (deprecated) diffs two Cachegrind output files

# [SYNOPSIS](#SYNOPSIS)

**cg\_diff**  
\[*options*]  
*cachegrind-out-file1*  
*cachegrind-out-file2*

# [DESCRIPTION](#DESCRIPTION)

**cg\_diff** diffs two Cachegrind output files into a single Cachegrind output file. It is deprecated because **cg\_annotate** can now do much the same thing, but better.

# [OPTIONS](#OPTIONS)

.PP **-h --help**

Show the help message.

.RE

.PP **--version**

Show the version number.

.RE

.PP **--mod-filename=&lt;expr&gt; \[default: none]**

Specifies an **s/old/new/** search-and-replace expression that is applied to all filenames.

.RE

.PP **--mod-funcname=&lt;expr&gt; \[default: none]**

Like **--mod-filename**, but for filenames.

.RE

# [SEE ALSO](#SEE_ALSO)

[cg\_annotate(1)](/man/os/valgrind/cg_annotate.1), [valgrind(1)](/man/os/valgrind/valgrind.1), $INSTALL/share/doc/valgrind/html/index.html or http://www.valgrind.org/docs/manual/index.html.

# [AUTHOR](#AUTHOR)

Nicholas Nethercote.

09/01/2026 Release 3.27.1

---

Document: cg_diff(1) from valgrind 3.27.1-r2 (Chainguard OS)
Source: https://sourceware.org/git/valgrind.git
