Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.43 KB

README.md

File metadata and controls

46 lines (29 loc) · 1.43 KB

pprof-upload

Build Status

Uploads pprof files to Stackdriver Profiler.

Requirements

Installation

Linux 64-bit:

$ curl http://storage.googleapis.com/jbd-releases/pprof-upload-linuxamd64 > pprof-upload && chmod +x pprof-upload

macOS 64-bit:

$ curl http://storage.googleapis.com/jbd-releases/pprof-upload-darwinamd64 > pprof-upload && chmod +x pprof-upload

Windows 64-bit:

Usage

Capture pprof profiles, for example by using the net/http/pprof package. See examples/helloworld for an example.

$ curl http://localhost:6060/debug/pprof/profile?seconds=30 > pprof.out
$ pprof-upload -target=webserver
https://console.cloud.google.com/profiler/webserver;type=CPU?project=PROJECT

Cloud Profiler Screenshot

Known issues

  • pprof-upload should recognize profile type from the input file.