Skip to content

Add perf timestamps to top level functions.#258

Open
prathameshnv wants to merge 1 commit intogoogle:masterfrom
prathameshnv:p-742
Open

Add perf timestamps to top level functions.#258
prathameshnv wants to merge 1 commit intogoogle:masterfrom
prathameshnv:p-742

Conversation

@prathameshnv
Copy link

This patch is a counter part to GCC's patch for enabling time profile based reordering based on perf timestamps with AutoFDO: https://gcc.gnu.org/pipermail/gcc-patches/2025-October/696758.html

The patch adds a new timestamp field to Symbol, and emits it to gcov for version >= 3. Currently, the patch only records timestamps from PMU mode (PerfDataSampleReader), I will post a follow up patch shortly for recording timestamps with SPE.

Results:
On an internal large workload with GCC's AutoFDO and time profile reordering (enabled by this patch), we see an improvement of ~32%.

This patch is a counter part to GCC's patch for enabling time profile
based reordering based on perf timestamps with AutoFDO:
https://gcc.gnu.org/pipermail/gcc-patches/2025-October/696758.html

The patch adds a new timestamp field to Symbol, and emits it to gcov for
version >= 3. Currently, the patch only records timestamps from PMU
mode (PerfDataSampleReader), I will post a follow up patch shortly for
recording timestamps with SPE.

Results:
On an internal large workload with GCC's AutoFDO and time profile reordering (enabled by this patch),
we see an improvement of ~32%.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant