- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 636 for proc (0.16 sec)
-
src/internal/trace/resources.go
return "Bad" } // ProcState represents the state of a proc. // // New ProcStates may be added in the future. Users of this type must be robust // to that possibility. type ProcState uint8 const ( ProcUndetermined ProcState = iota // No information is known about the proc. ProcNotExist // Proc does not exist. ProcRunning // Proc is running. ProcIdle // Proc is idle.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 8K bytes - Viewed (0) -
src/syscall/exec_unix_test.go
c.pipe.Close() if err := c.proc.Wait(); err != nil { c.test.Fatal(err) } } func create(t *testing.T) *command { testenv.MustHaveExec(t) proc := exec.Command("cat") stdin, err := proc.StdinPipe() if err != nil { t.Fatal(err) } return &command{stdin, proc, t} } func parent() (pid, pgrp int) { return syscall.Getpid(), syscall.Getpgrp() } func TestZeroSysProcAttr(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 04:41:27 UTC 2024 - 7.9K bytes - Viewed (0) -
platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/AnnotationProcessingCompileTaskTest.groovy
@Issue("gradle/gradle#8996") def "stacktrace contains root cause"() { given: def proc = new AnnotationProcessorDeclaration(processorClassName, IncrementalAnnotationProcessorType.UNKNOWN) def processTask = createProcessingTask(proc) when: processTask.call() then: def e = thrown(Throwable) def root = Throwables.getRootCause(e)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 3.3K bytes - Viewed (0) -
src/cmd/trace/jsontrace_test.go
procStarted := map[uint64]bool{} for _, e := range data.Events { if e.Name == "proc start" { if procStarted[e.TID] == true { t.Errorf("proc started twice: %d", e.TID) } procStarted[e.TID] = true } if e.Name == "proc stop" { if procStarted[e.TID] == false { t.Errorf("proc stopped twice: %d", e.TID) } procStarted[e.TID] = false } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 7.8K bytes - Viewed (0) -
cni/pkg/repair/netns.go
if parsedPodAddr == nil { return "", fmt.Errorf("failed to parse addr: %s", pod.Status.PodIP) } fs, err := procfs.NewFS("/host/proc") if err != nil { return "", fmt.Errorf("read procfs: %v", err) } procs, err := fs.AllProcs() if err != nil { return "", fmt.Errorf("read procs: %v", err) } oldest := uint64(math.MaxUint64) best := ""
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 04:07:10 UTC 2024 - 4.3K bytes - Viewed (0) -
platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MemInfoOsMemoryInfo.java
public class MemInfoOsMemoryInfo implements OsMemoryInfo { // /proc/meminfo is in kB since Linux 4.0, see https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/proc/task_mmu.c?id=39a8804455fb23f09157341d3ba7db6d7ae6ee76#n22 private static final Pattern MEMINFO_LINE_PATTERN = Pattern.compile("^\\D+(\\d+) kB$"); private static final String MEMINFO_FILE_PATH = "/proc/meminfo"; private final Matcher meminfoMatcher;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:10:02 UTC 2023 - 5.5K bytes - Viewed (0) -
src/internal/trace/testtrace/validation.go
} } case trace.ResourceProc: // Basic state transition validation. id := tr.Resource.Proc() old, new := tr.Proc() if new == trace.ProcUndetermined { e.Errorf("transition to undetermined state for proc %d", id) } if v.seenSync && old == trace.ProcUndetermined { e.Errorf("undetermined proc %d after first global sync", id) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 10.9K bytes - Viewed (0) -
cmd/metrics-v3-system-process.go
processIOReadBytesMD = NewCounterMD(processIOReadBytes, "Total bytes read by the process from the underlying storage system, /proc/[pid]/io read_bytes") processIOWCharBytesMD = NewCounterMD(processIOWCharBytes, "Total bytes written by the process to the underlying storage system including page cache, /proc/[pid]/io wchar")
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/runtime/syscall_windows_test.go
t.Fatal(e) } return &DLL{DLL: d, t: t} } func (d *DLL) Proc(name string) *syscall.Proc { p, e := d.FindProc(name) if e != nil { d.t.Fatal(e) } return p } func TestStdCall(t *testing.T) { type Rect struct { left, top, right, bottom int32 } res := Rect{} expected := Rect{1, 1, 40, 60} a, _, _ := GetDLL(t, "user32.dll").Proc("UnionRect").Call( uintptr(unsafe.Pointer(&res)),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 16:31:35 UTC 2023 - 32.5K bytes - Viewed (0) -
pkg/kubelet/util/swap/swap_util.go
} // gets /proc/swaps's content as an input, returns true if swap is enabled. func isSwapOnAccordingToProcSwaps(procSwapsContent []byte) bool { procSwapsContent = bytes.TrimSpace(procSwapsContent) // extra trailing \n procSwapsStr := string(procSwapsContent) procSwapsLines := strings.Split(procSwapsStr, "\n") // If there is more than one line (table headers) in /proc/swaps then swap is enabled
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 10:07:06 UTC 2024 - 4.2K bytes - Viewed (0)