package debugcharts
import "github.com/mkevac/debugcharts"
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 ¶
Types ¶
type CPUPair ¶
type DataStorage ¶
type DataStorage struct { BytesAllocated []SimplePair GcPauses []SimplePair CPUUsage []CPUPair Pprof []PprofPair }
type PprofPair ¶
type SimplePair ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
bindata | |
example |
- Version
- v0.0.0-20191222103121-ae1c48aa8615 (latest)
- Published
- Dec 22, 2019
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- now –
Tools for package owners.