Socket
Book a DemoInstallSign in
Socket

github.com/gbbr/memstats

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/gbbr/memstats

v0.0.0-20141117200020-3f4151ce3189
Source
Go
Version published
Created
Source

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.

FAQs

Package last updated on 17 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.