pprofdump

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2016 License: MIT Imports: 15 Imported by: 0

README

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

You can download prebuilt binaries of pprofdump from the GitHub releases page. Make sure to choose the correct binary based on your operating system and system architecture.

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL