Skip to content

Conversation

@vadimalekseev
Copy link
Member

@vadimalekseev vadimalekseev commented Dec 11, 2025

Describe Your Changes

Add a Makefile rule to simplify running pprof with support for showing VictoriaMetrics and Go source code.

Can be related: google/pprof#611 , golang/go#48601

Usage:

./benchmarks/pprof/pprof.sh http://localhost:9428/debug/pprof/heap

./benchmarks/pprof/pprof.sh ~/Downloads/heap.pprof

Checklist

The following checks are mandatory:

@vadimalekseev
Copy link
Member Author

For those interested in how pprof finds the source code: https://github.com/google/pprof/blob/e611ec304b22ed2bc39c0fd534f71243962cdd8a/internal/report/source.go#L1006

@vadimalekseev vadimalekseev changed the title add pprof rule for profiling VictoriaLogs add Makefile rule for profiling VictoriaLogs Dec 11, 2025
@vadimalekseev vadimalekseev marked this pull request as draft December 11, 2025 18:45
@vadimalekseev vadimalekseev marked this pull request as ready for review December 11, 2025 20:06
@vadimalekseev vadimalekseev changed the title add Makefile rule for profiling VictoriaLogs add a pprof wrapper to simplify profiling Dec 11, 2025
@func25
Copy link
Contributor

func25 commented Dec 12, 2025

I like the script. Would it make sense to still keep the Makefile as the entry point and have it delegate to benchmarks/pprof/pprof.sh? I want the Makefile to act as an index of dev tools.

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