Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for cpuTime (0.12 sec)

  1. 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)
  2. cmd/metrics-v2.go

    				MetricV2{
    					Description: getMinIOProcessVirtualMemory(),
    					Value:       float64(stat.VirtualMemory()),
    				})
    		}
    
    		if stat.CPUTime() > 0 {
    			metrics = append(metrics,
    				MetricV2{
    					Description: getMinIOProcessCPUTime(),
    					Value:       stat.CPUTime(),
    				})
    		}
    		return
    	})
    	return mg
    }
    
    func getGoMetrics() *MetricsGroupV2 {
    	mg := &MetricsGroupV2{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go

    	tests := []struct {
    		name          string
    		cpuReq        *resource.Quantity
    		cpuLim        *resource.Quantity
    		memLim        *resource.Quantity
    		expected      *runtimeapi.LinuxContainerResources
    		cgroupVersion CgroupVersion
    	}{
    		{
    			name:   "Request128MBLimit256MB",
    			cpuReq: generateResourceQuantity("1"),
    			cpuLim: generateResourceQuantity("2"),
    			memLim: generateResourceQuantity("128Mi"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41K bytes
    - Viewed (0)
  7. cmd/metrics-resource.go

    	interfaceTxErrors MetricName = "tx_errors"
    
    	// cpu stats
    	cpuUser       MetricName = "user"
    	cpuSystem     MetricName = "system"
    	cpuIOWait     MetricName = "iowait"
    	cpuIdle       MetricName = "idle"
    	cpuNice       MetricName = "nice"
    	cpuSteal      MetricName = "steal"
    	cpuLoad1      MetricName = "load1"
    	cpuLoad5      MetricName = "load5"
    	cpuLoad15     MetricName = "load15"
    	cpuLoad1Perc  MetricName = "load1_perc"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 17 15:15:13 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go

    	Stabil    int64
    	Jitcnt    int64
    	Calcnt    int64
    	Errcnt    int64
    	Stbcnt    int64
    	Tai       int32
    	_         [44]byte
    }
    
    type Time_t int64
    
    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: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go

    	Stabil    int32
    	Jitcnt    int32
    	Calcnt    int32
    	Errcnt    int32
    	Stbcnt    int32
    	Tai       int32
    	_         [44]byte
    }
    
    type Time_t int32
    
    type Tms struct {
    	Utime  int32
    	Stime  int32
    	Cutime int32
    	Cstime int32
    }
    
    type Utimbuf struct {
    	Actime  int32
    	Modtime int32
    }
    
    type Rusage struct {
    	Utime    Timeval
    	Stime    Timeval
    	Maxrss   int32
    	Ixrss    int32
    	Idrss    int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top