Documentation ¶
Index ¶
- Variables
- func Compute1orMoreFiles(files ...string)
- func ComputeDefaultFile()
- func FloatArrayToIntArray(fa []float64) []int
- func RunCollector(config *Config) (err error)
- type Config
- type DefaultLogger
- type Logger
- type MetricsAllSingleRun
- func (m *MetricsAllSingleRun) GenerateData(field string, TypePlot string) []opts.LineData
- func (m *MetricsAllSingleRun) GenerateFrees() []opts.LineData
- func (m *MetricsAllSingleRun) GenerateGraphs()
- func (m *MetricsAllSingleRun) GenerateLiveobjects() []opts.LineData
- func (m *MetricsAllSingleRun) GenerateMallocs() []opts.LineData
- func (m *MetricsAllSingleRun) Graph(description string, field string, Type ...string) components.Charter
- func (m *MetricsAllSingleRun) MallocsAndFreesGraph() components.Charter
- type MetricsComparison
- type NormalizedGraphs
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = &Config{}
DefaultConfig A configuration with default values.
Functions ¶
func Compute1orMoreFiles ¶
func Compute1orMoreFiles(files ...string)
func ComputeDefaultFile ¶
func ComputeDefaultFile()
ComputeDefaultFile Plot based on the default file which is results1.json
func FloatArrayToIntArray ¶
func RunCollector ¶
Types ¶
type Config ¶
type Config struct { // Measurement to write points to. // Default is "go.runtime.<hostname>". Measurement string // Interval at which to write batched points to InfluxDB. // Default is 60 seconds BatchInterval time.Duration // Interval at which to collect points. // Default is 10 seconds CollectionInterval time.Duration // Disable collecting CPU Statistics. cpu.* // Default is false DisableCpu bool // Disable collecting Memory Statistics. mem.* DisableMem bool // Disable collecting GC Statistics (requires Memory be not be disabled). mem.gc.* DisableGc bool // Default is DefaultLogger which exits when the library encounters a fatal error. Logger Logger }
type DefaultLogger ¶
type DefaultLogger struct{}
func (*DefaultLogger) Fatalln ¶
func (*DefaultLogger) Fatalln(v ...interface{})
func (*DefaultLogger) Println ¶
func (*DefaultLogger) Println(v ...interface{})
Println Overwritten function to save result to the result file
type MetricsAllSingleRun ¶
MetricsAllSingleRun Basic struct with file information
func ReadFile ¶
func ReadFile(File string) (*MetricsAllSingleRun, error)
func (*MetricsAllSingleRun) GenerateData ¶
func (m *MetricsAllSingleRun) GenerateData(field string, TypePlot string) []opts.LineData
func (*MetricsAllSingleRun) GenerateFrees ¶
func (m *MetricsAllSingleRun) GenerateFrees() []opts.LineData
GenerateFrees generate graph for frees
func (*MetricsAllSingleRun) GenerateGraphs ¶
func (m *MetricsAllSingleRun) GenerateGraphs()
GenerateGraphs Generate graphs for run
func (*MetricsAllSingleRun) GenerateLiveobjects ¶
func (m *MetricsAllSingleRun) GenerateLiveobjects() []opts.LineData
GenerateLiveobjects for Live objects (Mallocs - free)
func (*MetricsAllSingleRun) GenerateMallocs ¶
func (m *MetricsAllSingleRun) GenerateMallocs() []opts.LineData
func (*MetricsAllSingleRun) Graph ¶
func (m *MetricsAllSingleRun) Graph(description string, field string, Type ...string) components.Charter
func (*MetricsAllSingleRun) MallocsAndFreesGraph ¶
func (m *MetricsAllSingleRun) MallocsAndFreesGraph() components.Charter
MallocsAndFreesGraph mallocs graph
type MetricsComparison ¶
type MetricsComparison struct {
Metrics []MetricsAllSingleRun
}
func (*MetricsComparison) GenerateGraphsLists ¶
func (m *MetricsComparison) GenerateGraphsLists()
GenerateGraphsLists Generate graphs for run
func (*MetricsComparison) GraphArray ¶
func (m *MetricsComparison) GraphArray(description string, field string, Type ...string) components.Charter
func (*MetricsComparison) NormalizeGraphs ¶
func (m *MetricsComparison) NormalizeGraphs() (*NormalizedGraphs, error)
NormalizeGraphs Ensure data is available for being potable Step 1: Convert Duration to int Step 2: Ensure all points can rely on a single duration
type NormalizedGraphs ¶
Click to show internal directories.
Click to hide internal directories.