[PATCH] gprof: fix disappearing inlined functions

Project / Subsystem

binutils / gprof

Date

2026-05-28

Proposer

Richard Allen <rsaxvc@gmail.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • May increase the size of the gprof's symbol table.
  • Requires access to line/debug symbol information.

All attributes

project
binutils
subsystem
gprof
patch_id
discussion_id
20260528022134.133959-2-rsaxvc@gmail.com
source_type
public_inbox
title
[PATCH] gprof: fix disappearing inlined functions
headline
gprof: Fix disappearing inlined functions
tldr
gprof now includes function names from line/debug symbols, correctly attributing CPU cycles to inlined functions.
proposer
Richard Allen <rsaxvc@gmail.com>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • May increase the size of the gprof's symbol table.
  • Requires access to line/debug symbol information.
series_id
series_role
standalone
series_parts
[]
tags
  • gprof
  • profiling
  • inlining
  • debugging
bugzilla_url
date
2026-05-28T00:00:00.000Z

[PATCH] gprof: fix disappearing inlined functions

This patch modifies gprof to load function names from line/debug symbols, ensuring that inlined functions are properly accounted for in profiling results. Previously, CPU cycles spent in inlined functions might be attributed to the calling function (e.g., main), leading to inaccurate profiling data. This change provides more precise performance insights by correctly attributing time to inlined functions.