pprof-webserver

command module
v0.0.0-...-f9646ae Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

README

pprof-webserver

simple wrapper for google/pprof to run as webserver

  • left column shows list of profiles stored on the server
  • new profiles can be uploaded using dialog box on the top left
  • clicking on red "x" deletes profile file from server

Screenshot

Getting Started

  • clone this repo
  • run make dev to start server
  • default server port is 8080 and is accessible at url http://localhost:8080 in any browser

Command line options

$ ./pprof-webserver --help
Usage of ./pprof-webserver:
  -debug
    	enable debug logs
  -port string
    	server listen port (default "8080")
  -storage string
    	path to directory containing profile files (default "data")

Build

  • binary
make static
  • docker image
docker build -t pprof-server:v1 .

Run

  • command line
$ ./pprof-webserver -port 8080
  • docker image
docker run -it -p 8080:8080 pprof-server:v1

Security

Current implementation does not have kind of auth implementation, if you are deploying to the internet use a reverse proxy to secure the endpoint.

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