- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 40 for stk (0.03 sec)
-
src/runtime/metrics_test.go
} } stks = append(stks, have) for i, stk := range acceptStacks { if slices.Equal(have, stk) { values[i][0] += s.Value[0] values[i][1] += s.Value[1] } } } for i, stk := range acceptStacks { n += values[i][0] value += values[i][1] t.Logf("stack %v has samples totaling n=%d value=%d", stk, values[i][0], values[i][1]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 45K bytes - Viewed (0) -
src/cmd/go/internal/work/action.go
// vet expects to be able to import "fmt". var stk load.ImportStack stk.Push("vet") p1, err := load.LoadImportWithFlags("fmt", p.Dir, p, &stk, nil, 0) if err != nil { base.Fatalf("unexpected error loading fmt package from package %s: %v", p.ImportPath, err) } stk.Pop() aFmt := b.CompileAction(ModeBuild, depMode, p1) var deps []*Action
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 32.7K bytes - Viewed (0) -
src/runtime/os_linux.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 25.9K bytes - Viewed (0) -
src/runtime/string.go
// stringDataOnStack reports whether the string's data is // stored on the current goroutine's stack. func stringDataOnStack(s string) bool { ptr := uintptr(unsafe.Pointer(unsafe.StringData(s))) stk := getg().stack return stk.lo <= ptr && ptr < stk.hi } func rawstringtmp(buf *tmpBuf, l int) (s string, b []byte) { if buf != nil && l <= len(buf) { b = buf[:l] s = slicebytetostringtmp(&b[0], len(b)) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.4K bytes - Viewed (0) -
src/internal/trace/event.go
return true }) } case EventExperimental: r := e.Experimental() fmt.Fprintf(&sb, " Name=%s ArgNames=%v Args=%v", r.Name, r.ArgNames, r.Args) } if stk := e.Stack(); stk != NoStack { fmt.Fprintln(&sb) fmt.Fprintln(&sb, "Stack=") stk.Frames(func(f StackFrame) bool { fmt.Fprintf(&sb, "\t%s @ 0x%x\n", f.Func, f.PC) fmt.Fprintf(&sb, "\t\t%s:%d\n", f.File, f.Line) return true }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 12:39:00 UTC 2024 - 28.9K bytes - Viewed (0) -
src/runtime/mgcmark.go
p := *(*uintptr)(unsafe.Pointer(b + i)) if p != 0 { if obj, span, objIndex := findObject(p, b, i); obj != 0 { greyobject(obj, b, i, span, gcw, objIndex) } else if stk != nil && p >= stk.stack.lo && p < stk.stack.hi { stk.putPtr(p, false) } } } bits >>= 1 i += goarch.PtrSize } } } // scanobject scans the object starting at b, adding pointers to gcw.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 21:25:11 UTC 2024 - 52.5K bytes - Viewed (0) -
src/internal/trace/testtrace/validation.go
s = &schedContext{M: m, P: trace.NoProc, G: trace.NoGoroutine} v.ms[m] = s return s } return s } func checkStack(e *errAccumulator, stk trace.Stack) { // Check for non-empty values, but we also check for crashes due to incorrect validation. i := 0 stk.Frames(func(f trace.StackFrame) bool { if i == 0 { // Allow for one fully zero stack. // // TODO(mknyszek): Investigate why that happens.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 10.9K bytes - Viewed (0) -
src/internal/trace/oldtrace.go
// This should be impossible but let's be safe. return fmt.Errorf("couldn't add strings: %w", addErr) } it.evt.strings.compactify() // Convert stacks. for id, stk := range pr.Stacks { evt.stacks.insert(stackID(id), stack{pcs: stk}) } // OPT(dh): if we could share the frame type between this package and // oldtrace we wouldn't have to copy the map. for pc, f := range pr.PCs { evt.pcs[pc] = frame{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 17.2K bytes - Viewed (0) -
src/internal/trace/generation.go
func validateStackStrings( stacks *dataTable[stackID, stack], strings *dataTable[stringID, string], frames map[uint64]frame, ) error { var err error stacks.forEach(func(id stackID, stk stack) bool { for _, pc := range stk.pcs { frame, ok := frames[pc] if !ok { err = fmt.Errorf("found unknown pc %x for stack %d", pc, id) return false } _, ok = strings.get(frame.funcID) if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 22:14:45 UTC 2024 - 12.1K bytes - Viewed (0) -
src/internal/trace/summary.go
// This root frame will be identical for all transitions on this // goroutine, because it represents its immutable start point. if g.Name == "" { stk := st.Stack if stk != NoStack { var frame StackFrame var ok bool stk.Frames(func(f StackFrame) bool { frame = f ok = true return true }) if ok { // NB: this PC won't actually be consistent for
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 20.7K bytes - Viewed (0)