Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,040 for userTime (0.21 sec)

  1. src/cmd/go/init_test.go

    		b.Fatal(err)
    	}
    
    	// We collect extra metrics.
    	var n, userTime, systemTime int64
    
    	b.ResetTimer()
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			cmd := testenv.Command(b, gotool, "env", "GOARCH")
    
    			if err := cmd.Run(); err != nil {
    				b.Fatal(err)
    			}
    			atomic.AddInt64(&n, 1)
    			atomic.AddInt64(&userTime, int64(cmd.ProcessState.UserTime()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:26 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  2. src/os/exec_windows.go

    	n := int64(ft.HighDateTime)<<32 + int64(ft.LowDateTime) // in 100-nanosecond intervals
    	return time.Duration(n*100) * time.Nanosecond
    }
    
    func (p *ProcessState) userTime() time.Duration {
    	return ftToDuration(&p.rusage.UserTime)
    }
    
    func (p *ProcessState) systemTime() time.Duration {
    	return ftToDuration(&p.rusage.KernelTime)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/os/exec.go

    // Sending [Interrupt] on Windows is not implemented.
    func (p *Process) Signal(sig Signal) error {
    	return p.signal(sig)
    }
    
    // UserTime returns the user CPU time of the exited process and its children.
    func (p *ProcessState) UserTime() time.Duration {
    	return p.userTime()
    }
    
    // SystemTime returns the system CPU time of the exited process and its children.
    func (p *ProcessState) SystemTime() time.Duration {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. src/os/exec_plan9.go

    	return p.status.ExitStatus() == 0
    }
    
    func (p *ProcessState) sys() any {
    	return p.status
    }
    
    func (p *ProcessState) sysUsage() any {
    	return p.status
    }
    
    func (p *ProcessState) userTime() time.Duration {
    	return time.Duration(p.status.Time[0]) * time.Millisecond
    }
    
    func (p *ProcessState) systemTime() time.Duration {
    	return time.Duration(p.status.Time[1]) * time.Millisecond
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. src/os/exec_unix.go

    		// do not expect them. Fall back to using the PID.
    		return newPIDProcess(pid), nil
    	}
    	// Use the handle.
    	return newHandleProcess(pid, h), nil
    }
    
    func (p *ProcessState) userTime() time.Duration {
    	return time.Duration(p.rusage.Utime.Nano()) * time.Nanosecond
    }
    
    func (p *ProcessState) systemTime() time.Duration {
    	return time.Duration(p.rusage.Stime.Nano()) * time.Nanosecond
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. src/runtime/mstats.go

    	GCTotalTime     int64
    
    	ScavengeAssistTime int64 // background scavenger
    	ScavengeBgTime     int64 // scavenge assists
    	ScavengeTotalTime  int64
    
    	IdleTime int64 // Time Ps spent in _Pidle.
    	UserTime int64 // Time Ps spent in _Prunning or _Psyscall that's not any of the above.
    
    	TotalTime int64 // GOMAXPROCS * (monotonic wall clock time elapsed)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  7. src/runtime/pprof/pprof_test.go

    				}
    
    				totalTime := userTime + systemTime
    				t.Logf("compare %s user + %s system = %s vs %s", userTime, systemTime, totalTime, value)
    				if err := compare(totalTime, value, maxDiff); err != nil {
    					t.Logf("compare got %v want nil", err)
    					ok = false
    				}
    
    				return ok
    			}
    
    			testCPUProfile(t, acceptProfile, func(dur time.Duration) {
    				userTime, systemTime = diffCPUTime(t, func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  8. src/syscall/zsyscall_windows.go

    }
    
    func GetProcessTimes(handle Handle, creationTime *Filetime, exitTime *Filetime, kernelTime *Filetime, userTime *Filetime) (err error) {
    	r1, _, e1 := Syscall6(procGetProcessTimes.Addr(), 5, uintptr(handle), uintptr(unsafe.Pointer(creationTime)), uintptr(unsafe.Pointer(exitTime)), uintptr(unsafe.Pointer(kernelTime)), uintptr(unsafe.Pointer(userTime)), 0)
    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 56.3K bytes
    - Viewed (0)
  9. src/runtime/metrics.go

    		},
    		"/cpu/classes/user:cpu-seconds": {
    			deps: makeStatDepSet(cpuStatsDep),
    			compute: func(in *statAggregate, out *metricValue) {
    				out.kind = metricKindFloat64
    				out.scalar = float64bits(nsToSec(in.cpuStats.UserTime))
    			},
    		},
    		"/gc/cycles/automatic:gc-cycles": {
    			deps: makeStatDepSet(sysStatsDep),
    			compute: func(in *statAggregate, out *metricValue) {
    				out.kind = metricKindUint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/shell.go

    	err = cmd.Run()
    	if a != nil && a.json != nil {
    		aj := a.json
    		aj.Cmd = append(aj.Cmd, joinUnambiguously(cmdline))
    		aj.CmdReal += time.Since(start)
    		if ps := cmd.ProcessState; ps != nil {
    			aj.CmdUser += ps.UserTime()
    			aj.CmdSys += ps.SystemTime()
    		}
    	}
    
    	// err can be something like 'exit status 1'.
    	// Add information about what program was running.
    	// Note that if buf.Bytes() is non-empty, the caller usually
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top