- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for cpuTime (0.16 sec)
-
cmd/metrics-v3-system-process.go
) func loadProcStatMetrics(ctx context.Context, stat procfs.ProcStat, m MetricValues) { if stat.CPUTime() > 0 { m.Set(processCPUTotalSeconds, float64(stat.CPUTime())) } if stat.ResidentMemory() > 0 { m.Set(processResidentMemoryBytes, float64(stat.ResidentMemory())) } if stat.VirtualMemory() > 0 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 26 16:07:23 UTC 2024 - 6.4K bytes - Viewed (0) -
src/internal/sysinfo/sysinfo_test.go
// license that can be found in the LICENSE file. package sysinfo_test import ( . "internal/sysinfo" "testing" ) func TestCPUName(t *testing.T) { t.Logf("CPUName: %s", CPUName()) t.Logf("osCPUInfoName: %s", XosCPUInfoName())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:42:42 UTC 2024 - 343 bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_windows_test.go
_, _, fakeRuntimeSvc, err := createTestRuntimeManager() require.NoError(t, err) tests := []struct { name string cpuLim resource.Quantity memLim resource.Quantity expected *runtimeapi.WindowsContainerResources }{ { name: "Request128MBLimit256MB", cpuLim: resource.MustParse("2"), memLim: resource.MustParse("128Mi"), expected: &runtimeapi.WindowsContainerResources{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 5.3K bytes - Viewed (0) -
src/internal/sysinfo/sysinfo.go
// Package sysinfo implements high level hardware information gathering // that can be used for debugging or information purposes. package sysinfo import ( "internal/cpu" "sync" ) var CPUName = sync.OnceValue(func() string { if name := cpu.Name(); name != "" { return name } if name := osCPUInfoName(); name != "" { return name } return ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:42:42 UTC 2024 - 518 bytes - Viewed (0) -
src/cmd/internal/metadata/main.go
//go:build ignore package main import ( "cmd/internal/osinfo" "fmt" "internal/sysinfo" "runtime" ) func main() { fmt.Printf("# GOARCH: %s\n", runtime.GOARCH) fmt.Printf("# CPU: %s\n", sysinfo.CPUName()) fmt.Printf("# GOOS: %s\n", runtime.GOOS) ver, err := osinfo.Version() if err != nil { ver = fmt.Sprintf("UNKNOWN: error determining OS version: %v", err) } fmt.Printf("# OS Version: %s\n", ver)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 21:40:36 UTC 2023 - 876 bytes - Viewed (0) -
cmd/metrics-realtime.go
if types.Contains(madmin.MetricsCPU) { m.Aggregated.CPU = &madmin.CPUMetrics{ CollectedAt: UTCNow(), } cm, err := c.Times(false) if err != nil { m.Errors = append(m.Errors, fmt.Sprintf("%s: %v (cpuTimes)", byHostName, err.Error())) } else { // not collecting per-cpu stats, so there will be only one element if len(cm) == 1 { m.Aggregated.CPU.TimesStat = &cm[0] } else {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jun 01 05:16:24 UTC 2024 - 6.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
Sec int64 Nsec int64 } type Timeval struct { Sec int64 Usec int64 } type Timeval32 struct { Sec int32 Usec int32 } type Tms struct { Utime int64 Stime int64 Cutime int64 Cstime int64 } type Utimbuf struct { Actime int64 Modtime int64 } type Rusage struct { Utime Timeval Stime Timeval Maxrss int64 Ixrss int64 Idrss int64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 7.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go
} type timeval_zos struct { //correct (with padding and all) Sec int64 _ [4]byte // pad Usec int32 } type Tms struct { //clock_t is 4-byte unsigned int in zos Utime uint32 Stime uint32 Cutime uint32 Cstime uint32 } type Time_t int64 type Utimbuf struct { Actime int64 Modtime int64 } type Utsname struct { Sysname [16]byte Nodename [32]byte Release [8]byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 8.6K bytes - Viewed (0)