debugcharts

package module
v0.0.0-...-02e972b Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2015 License: MIT Imports: 10 Imported by: 0

README

debugcharts Build Status

Go memory debug charts.

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

Installation

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitHttpRouter

func InitHttpRouter(R *httprouter.Router)

Types

type DataStorage

type DataStorage struct {
	BytesAllocated [][]uint64
	GcPauses       [][]uint64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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