epochcharts

package module
v0.0.0-...-fb052d4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2014 License: MIT Imports: 8 Imported by: 0

README

epochcharts

Go memory debug charts.

This package uses chart library Highcharts. It is free for personal and non-commercial use. Please buy a license otherwise.

Development

You will need the go-binddata program/package to be able to integrate the JS/CSS files: go get github.com/jteeuwen/go-bindata/...

Then, to compile the .go file that would include the .js and .css, just type :

go-bindata -debug=true -pkg="bindata" -o bindata/bindata.go static/

Installation

go get -v -u github.com/mkevac/epochcharts

Usage

Just install package and start http server. There is an example program here.

Then go to http://localhost:8080/debug/charts. You should see something like this:

Data is updated every second. We keep data for last day.

Documentation

Overview

Simple live charts for memory consumption and GC pauses.

To use debugcharts, link this package into your program:

import _ "github.com/mkevac/debugcharts"

If your application is not already running an http server, you need to start one. Add "net/http" and "log" to your imports and the following code to your main function:

go func() {
	log.Println(http.ListenAndServe("localhost:6060", nil))
}()

Then go look at charts:

http://localhost:6060/debug/charts

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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