Skip to content

gbbr/memstats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

go get github.com/gbbr/memstats/...
go install github.com/gbbr/memstats/...

Basic usage

To monitor your application:

  • Import the package and add the line go memstats.Serve() into your code.
  • Run your application. Profiling information should now be available via websockets.
  • In the terminal or command line, run the memstats command to get a visual on http://localhost:8080

For more configuration options and API, see the documentation.

--

Dummy program

Write this program, and save it as main.go:

// filename: main.go
package main

import "github.com/gbbr/memstats"

func main() {
	memstats.Serve()
}

Run go run main.go to start the program.
Run memstats to start the web viewer on http://localhost:8080.

About

Live memory profiling monitor for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages