Documentation
¶
Index ¶
- func PlotLineCharts(xStep int, filePath, inFile, xLable string)
- func PlotStackCharts(xStep int, metricFile, inFilePath, inFile, xLable string)
- type CPUInfo
- func (c *CPUInfo) AllCPUs() []int
- func (c *CPUInfo) GetCoreID(processor int) (int, error)
- func (c *CPUInfo) GetSibling(processor int) (int, error)
- func (c *CPUInfo) GetSocketCoreInString(processor int) (string, error)
- func (c *CPUInfo) GetSocketID(processor int) (int, error)
- func (c *CPUInfo) NumCPU() int
- func (c *CPUInfo) NumSocket() int
- func (c *CPUInfo) SocketCPUs(socket int) ([]int, error)
- type Profiler
- func (p *Profiler) GetCoolDownTime() float64
- func (p *Profiler) GetCores() map[string]bool
- func (p *Profiler) GetResult() (map[string]float64, error)
- func (p *Profiler) GetWarmUpTime() float64
- func (p *Profiler) PrintBottlenecks()
- func (p *Profiler) Run() error
- func (p *Profiler) SetCoolDownTime()
- func (p *Profiler) SetWarmUpTime()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlotLineCharts ¶
PlotLineCharts plots every attribute as VM number increases in the csv file
func PlotStackCharts ¶
PlotStackCharts plots stack charts if any metric group exists in the csv file
Types ¶
type CPUInfo ¶
type CPUInfo struct {
// contains filtered or unexported fields
}
CPUInfo contains sockets and processor to socket and core map
func (*CPUInfo) GetSibling ¶
GetSibling returns the sibling processor
func (*CPUInfo) GetSocketCoreInString ¶
GetSocketCoreInString returns the physical core ID in Sx-Cx format
func (*CPUInfo) GetSocketID ¶
GetSocketID returns the socket ID
type Profiler ¶
type Profiler struct {
// contains filtered or unexported fields
}
Profiler a instance of toplev command
func NewProfiler ¶
func NewProfiler(executionTime float64, printInterval uint64, level int, nodes, outFile string, socket, cpu int) (*Profiler, error)
NewProfiler returns a new instance of profiler
func (*Profiler) GetCoolDownTime ¶
GetCoolDownTime returns the time duration until system starts tearing down.
func (*Profiler) GetWarmUpTime ¶
GetWarmUpTime returns the time duration until system is warm.
func (*Profiler) PrintBottlenecks ¶
func (p *Profiler) PrintBottlenecks()
PrintBottlenecks prints the bottlenecks during profiling
func (*Profiler) SetCoolDownTime ¶
func (p *Profiler) SetCoolDownTime()
SetCoolDownTime sets the time duration until system starts tearing down.
func (*Profiler) SetWarmUpTime ¶
func (p *Profiler) SetWarmUpTime()
SetWarmUpTime sets the time duration until system is warm.