Diff Command - Diff Command - 57368

uProf User Guide

Document ID
57368
Release Date
2025-06-09
Revision
5.1 English

The diff command streamlines the process of comparing multiple profile reports by automating the manual comparison of events. It processes the raw profile data, processed files, or database files to generate a markdown comparison report for the collected profiles. The generated markdown file includes detailed function data providing comprehensive insights into the compared profiles.

Furthermore, the diff command can also be used to generate a single profile report by specifying only the base profile path. This simplifies the generation of individual reports, making it more convenient and efficient.

During profile comparison, there is always a single base profile and multiple non-base profiles. Valid comparison results are obtained only for the functions that exist in both the base profile and non-base profiles.

By default, the comparison results are displayed in the source view. In the source view table, information, such as File, Line, Source Code, Address, Instruction, Code Byte, and Events are provided for each function. This comprehensive view enables a detailed analysis of the compared profiles.

Note: To obtain meaningful and accurate comparison results, it is important to ensure that the base profile and non-base profiles have matching functions available for comparison.

Synopsis

AMDuProfCLI diff [--help] [<options>] AMDuProfCLI compare [--help] [<options>]

Common Usages

AMDuProfCLI diff --baseline <base session-dir path> --with <non-base session-dir path> -o
<output-dir>