Documentation
¶
Overview ¶
Process usage stats, mostly wrapping relevant fields from syscall.Rusage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRecordNotFound = errors.New("record not found")
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct {
Name string
SourceFile string
CompressedFile string
VQMResultFile string
Cmd string
HStime string
HUtime string
HElapsed string
Stime time.Duration
Utime time.Duration
Elapsed time.Duration
VQMStime time.Duration
VQMUtime time.Duration
VQMElapsed time.Duration
MaxRss int64
VideoDuration float64
AvgEncodingSpeed float64
PSNRMin float64
PSNRMax float64
PSNRMean float64
PSNRHarmonicMean float64
PSNRStDev float64
PSNRVariance float64
MS_SSIMMin float64
MS_SSIMMax float64
MS_SSIMMean float64
MS_SSIMHarmonicMean float64
MS_SSIMStDev float64
MS_SSIMVariance float64
VMAFMin float64
VMAFMax float64
VMAFMean float64
VMAFHarmonicMean float64
VMAFStDev float64
VMAFVariance float64
BitrateMin float64
BitrateMax float64
BitrateMean float64
}
Record contains metrics for a single encode.
type UsageStat ¶ added in v0.4.2
type UsageStat struct {
// Human friendly representations of time duration
HStime string
HUtime string
HElapsed string
// time.Duration is nanoseconds
Stime time.Duration
Utime time.Duration
Elapsed time.Duration
// MaxRss is KB
MaxRss int64
}
UsageStat contains process resource usage stats.
func NewUsageStat ¶ added in v0.4.2
NewUsageStat will create UsageStat instance.
func (*UsageStat) CPUPercent ¶ added in v0.4.2
CPUPercent calculates CPU usage in percent.
Click to show internal directories.
Click to hide internal directories.