---
name: "cg_diff"
section: "1"
platform: "linux"
package: "valgrind"
version: "3.25.1-9"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/cg_diff"
---

# cg\_diff(1)

(deprecated) diffs two Cachegrind output files

## NAME

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

## SYNOPSIS

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

## 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

- **-h --help**

  Show the help message.

- **--version**

  Show the version number.

**--mod-filename=\<expr\> \[default: none\]**

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

**--mod-funcname=\<expr\> \[default: none\]**

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

## SEE ALSO

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

## AUTHOR

Nicholas Nethercote.
