var referencedResetInterval …
var smapsFilePathPattern …
var clearRefsFilePathPattern …
var referencedRegexp …
type Handler …
func NewHandler(cgroupManager cgroups.Manager, rootFs string, pid int, includedMetrics container.MetricSet) *Handler { … }
func (h *Handler) GetStats() (*info.ContainerStats, error) { … }
func parseUlimit(value string) (int64, error) { … }
func processLimitsFile(fileData string) []info.UlimitSpec { … }
func processMaxOpenFileLimitLine(name, line string) (info.UlimitSpec, error) { … }
func processRootProcUlimits(rootFs string, rootPid int) []info.UlimitSpec { … }
func processStatsFromProcs(rootFs string, cgroupPath string, rootPid int) (info.ProcessStats, error) { … }
func (h *Handler) schedulerStatsFromProcs() (info.CpuSchedstat, error) { … }
func referencedBytesStat(pids []int, cycles uint64, resetInterval uint64) (uint64, error) { … }
func getReferencedKBytes(pids []int) (uint64, error) { … }
func clearReferencedBytes(pids []int, cycles uint64, resetInterval uint64) error { … }
func networkStatsFromProc(rootFs string, pid int) ([]info.InterfaceStats, error) { … }
var ignoredDevicePrefixes …
func isIgnoredDevice(ifName string) bool { … }
func scanInterfaceStats(netStatsFile string) ([]info.InterfaceStats, error) { … }
func setInterfaceStatValues(fields []string, pointers []*uint64) error { … }
func tcpStatsFromProc(rootFs string, pid int, file string) (info.TcpStat, error) { … }
func advancedTCPStatsFromProc(rootFs string, pid int, file1, file2 string) (info.TcpAdvancedStat, error) { … }
func scanAdvancedTCPStats(advancedStats *info.TcpAdvancedStat, advancedTCPStatsFile string) error { … }
func scanTCPStats(tcpStatsFile string) (info.TcpStat, error) { … }
func udpStatsFromProc(rootFs string, pid int, file string) (info.UdpStat, error) { … }
func scanUDPStats(r io.Reader) (info.UdpStat, error) { … }
func (h *Handler) GetProcesses() ([]int, error) { … }
func setCPUStats(s *cgroups.Stats, ret *info.ContainerStats, withPerCPU bool) { … }
func setDiskIoStats(s *cgroups.Stats, ret *info.ContainerStats) { … }
func setMemoryStats(s *cgroups.Stats, ret *info.ContainerStats) { … }
func setCPUSetStats(s *cgroups.Stats, ret *info.ContainerStats) { … }
func getNumaStats(memoryStats map[uint8]uint64) map[uint8]uint64 { … }
func setMemoryNumaStats(s *cgroups.Stats, ret *info.ContainerStats) { … }
func setHugepageStats(s *cgroups.Stats, ret *info.ContainerStats) { … }
func setThreadsStats(s *cgroups.Stats, ret *info.ContainerStats) { … }
func newContainerStats(cgroupStats *cgroups.Stats, includedMetrics container.MetricSet) *info.ContainerStats { … }