Skip to content

Conversation

metalmatze
Copy link
Member

Summary

  • Updated all references from /debug/pprof/heap to /debug/pprof/allocs in README.md
  • Updated endpoint paths in example/src/main.rs to match the correct API
  • Fixed flamegraph endpoint from /debug/pprof/heap/flamegraph to /debug/pprof/allocs/flamegraph

The README and example code incorrectly referenced /debug/pprof/heap
endpoints when they should be /debug/pprof/allocs. This commit updates
all occurrences to use the correct endpoint path.
v.push(i);
}

let app = axum::Router::new().route("/debug/pprof/heap", axum::routing::get(handle_get_heap));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude said it didn't want to update the function name handle_get_heap. Do we want to make that change? Let me know.

@brancz brancz merged commit 39eb076 into main Jul 7, 2025
3 checks passed
@brancz brancz deleted the fix-heap-to-allocs-endpoints branch July 7, 2025 16:06
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.

2 participants