Skip to content

Fix profiler module: metrics calculation, flame chart parameterization, and cache cleanup#311

Merged
butschster merged 1 commit into
masterfrom
fix/profiler-module-improvements
Mar 26, 2026
Merged

Fix profiler module: metrics calculation, flame chart parameterization, and cache cleanup#311
butschster merged 1 commit into
masterfrom
fix/profiler-module-improvements

Conversation

@butschster
Copy link
Copy Markdown
Member

  • Fix overallTotals bug in FindTopFunctionsByUuidHandler: aggregate metrics for same callee from different callers instead of only counting first occurrence
  • Fix diff calculation in CalculateDiffsBetweenEdges: compute correct exclusive metrics (inclusive minus children sum) and add missing d_ct
  • Add ct to percentage calculation in PrepareEdges (p_ct was always 0)
  • Fix batch counter off-by-one in StoreProfileHandler
  • Extract duplicated splitName into shared EdgeNameSplitter utility
  • Parameterize flame chart metric (was hardcoded to wt): add FlameChartRequest filter, pass metric from frontend, include metric in cache file key
  • Add flame chart cache invalidation on profile deletion

@butschster butschster self-assigned this Mar 26, 2026
@butschster butschster added this to the 1.0 milestone Mar 26, 2026
…n, and cache cleanup

- Fix overallTotals bug in FindTopFunctionsByUuidHandler: aggregate metrics for same callee
  from different callers instead of only counting first occurrence
- Fix diff calculation in CalculateDiffsBetweenEdges: compute correct exclusive metrics
  (inclusive minus children sum) and add missing d_ct
- Add ct to percentage calculation in PrepareEdges (p_ct was always 0)
- Fix batch counter off-by-one in StoreProfileHandler
- Extract duplicated splitName into shared EdgeNameSplitter utility
- Parameterize flame chart metric (was hardcoded to wt): add FlameChartRequest filter,
  pass metric from frontend, include metric in cache file key
- Add flame chart cache invalidation on profile deletion

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@butschster butschster force-pushed the fix/profiler-module-improvements branch from 5c58e34 to c2dccb8 Compare March 26, 2026 20:30
@butschster butschster merged commit 2bd210d into master Mar 26, 2026
7 checks passed
@butschster butschster deleted the fix/profiler-module-improvements branch March 26, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant