Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for sysUsage (0.25 sec)

  1. src/os/exec_plan9.go

    	return p.status.Exited()
    }
    
    func (p *ProcessState) success() bool {
    	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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/os/exec.go

    	return p.sys()
    }
    
    // SysUsage returns system-dependent resource usage information about
    // the exited process. Convert it to the appropriate underlying
    // type, such as [*syscall.Rusage] on Unix, to access its contents.
    // (On Unix, *syscall.Rusage matches struct rusage as defined in the
    // getrusage(2) manual page.)
    func (p *ProcessState) SysUsage() any {
    	return p.sysUsage()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. src/os/exec_posix.go

    	return p.status.Exited()
    }
    
    func (p *ProcessState) success() bool {
    	return p.status.ExitStatus() == 0
    }
    
    func (p *ProcessState) sys() any {
    	return p.status
    }
    
    func (p *ProcessState) sysUsage() any {
    	return p.rusage
    }
    
    func (p *ProcessState) String() string {
    	if p == nil {
    		return "<nil>"
    	}
    	status := p.Sys().(syscall.WaitStatus)
    	res := ""
    	switch {
    	case status.Exited():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*ProcessState).Pid", Method, 0},
    		{"(*ProcessState).String", Method, 0},
    		{"(*ProcessState).Success", Method, 0},
    		{"(*ProcessState).Sys", Method, 0},
    		{"(*ProcessState).SysUsage", Method, 0},
    		{"(*ProcessState).SystemTime", Method, 0},
    		{"(*ProcessState).UserTime", Method, 0},
    		{"(*SyscallError).Error", Method, 0},
    		{"(*SyscallError).Timeout", Method, 10},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg os, method (*ProcessState) Pid() int
    pkg os, method (*ProcessState) String() string
    pkg os, method (*ProcessState) Success() bool
    pkg os, method (*ProcessState) Sys() interface{}
    pkg os, method (*ProcessState) SysUsage() interface{}
    pkg os, method (*ProcessState) SystemTime() time.Duration
    pkg os, method (*ProcessState) UserTime() time.Duration
    pkg os, method (*SyscallError) Error() string
    pkg os, method (FileMode) IsDir() bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top