- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 906 for Rusage (0.24 sec)
-
src/os/exec_unix.go
} var ( status syscall.WaitStatus rusage syscall.Rusage pid1 int e error ) for { pid1, e = syscall.Wait4(p.Pid, &status, 0, &rusage) if e != syscall.EINTR { break } } if e != nil { return nil, NewSyscallError("wait", e) } p.pidDeactivate(statusDone) return &ProcessState{ pid: pid1, status: status, rusage: &rusage, }, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 4.1K bytes - Viewed (0) -
src/os/pidfd_linux.go
return nil, syscall.EINVAL } defer p.handleTransientRelease() var ( info unix.SiginfoChild rusage syscall.Rusage e syscall.Errno ) for { _, _, e = syscall.Syscall6(syscall.SYS_WAITID, _P_PIDFD, handle, uintptr(unsafe.Pointer(&info)), syscall.WEXITED, uintptr(unsafe.Pointer(&rusage)), 0) if e != syscall.EINTR { break } } if e != 0 { return nil, NewSyscallError("waitid", e) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 18:08:44 UTC 2024 - 4.2K bytes - Viewed (0) -
src/os/exec_windows.go
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) -
src/os/exec_posix.go
} // ProcessState stores information about a process, as reported by Wait. type ProcessState struct { pid int // The process's id. status syscall.WaitStatus // System-dependent status info. rusage *syscall.Rusage } // Pid returns the process id of the exited process. func (p *ProcessState) Pid() int { return p.pid } func (p *ProcessState) exited() bool { return p.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) -
src/runtime/pprof/pprof_norusage.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 309 bytes - Viewed (0) -
src/syscall/syscall_wasip1.go
func (w WaitStatus) TrapCause() int { return 0 } // Rusage is a placeholder to allow compilation of the [os/exec] package // because we need Go programs to be portable across platforms. WASI does // not have a mechanism to to spawn processes so there is no reason for an // application to take a dependency on this type. type Rusage struct { Utime Timeval Stime Timeval }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 9.4K bytes - Viewed (0) -
src/syscall/syscall_solaris.go
} func (w WaitStatus) TrapCause() int { return -1 } func wait4(pid uintptr, wstatus *WaitStatus, options uintptr, rusage *Rusage) (wpid uintptr, err uintptr) func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) { r0, e1 := wait4(uintptr(pid), wstatus, uintptr(options), rusage) if e1 != 0 { err = Errno(e1) } return int(r0), err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 15.7K bytes - Viewed (0) -
src/syscall/syscall_js.go
return 0, ENOSYS } func StartProcess(argv0 string, argv []string, attr *ProcAttr) (pid int, handle uintptr, err error) { return 0, 0, ENOSYS } func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) { return 0, ENOSYS } type Iovec struct{} // dummy type Timespec struct { Sec int64 Nsec int64 } type Timeval struct { Sec int64 Usec int64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 6.7K bytes - Viewed (0) -
src/syscall/syscall_aix.go
//sys wait4(pid _Pid_t, status *_C_int, options int, rusage *Rusage) (wpid _Pid_t, err error) func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) { var status _C_int var r _Pid_t err = ERESTART // AIX wait4 may return with ERESTART errno, while the process is still // active. for err == ERESTART { r, err = wait4(_Pid_t(pid), &status, options, rusage) } wpid = int(r)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:50:55 UTC 2024 - 17.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
//sysnb getrusage(who int, rusage *rusage_zos) (err error) = SYS_GETRUSAGE func Getrusage(who int, rusage *Rusage) (err error) { var ruz rusage_zos err = getrusage(who, &ruz) //Only the first two fields of Rusage are set rusage.Utime.Sec = ruz.Utime.Sec rusage.Utime.Usec = int64(ruz.Utime.Usec) rusage.Stime.Sec = ruz.Stime.Sec rusage.Stime.Usec = int64(ruz.Stime.Usec) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 84.4K bytes - Viewed (0)