All Projects → benbjohnson → Pprofdump

benbjohnson / Pprofdump

Licence: mit
A simple utility for collecting net/http/pprof profiles.

Programming Languages

go
31211 projects - #10 most used programming language

pprofdump

This utility provides the ability for users unfamiliar with Go's toolchain to retrieve a set of pprof profiles via HTTP and package them as a gzipped tar file.

Getting started

Download the latest prebuilt binaries of pprofdump for your operating system:

Usage

Once you have downloaded pprofdump, simply point it at the HTTP server that has pprof endpoints available:

$ pprofdump http://localhost:1234 > mydump.tar.gz

Note that this will take 30 seconds because the CPU profile takes 30 seconds to run. You can see verbose output using the -v flag.

You can also specify specific profiles you want to fetch:

$ pprofdump -profiles heap,goroutine http://localhost:1234

By default the tarball is written to stdout but you can redirect it using the -o flag:

$ pprofdump -o /tmp/mydump.tar.gz http://localhost:1234
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].