- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for PCs (0.02 sec)
-
src/runtime/callers_test.go
"runtime_test.TestCallersPanic"} defer func() { if r := recover(); r == nil { t.Fatal("did not panic") } pcs := make([]uintptr, 20) pcs = pcs[:runtime.Callers(0, pcs)] testCallers(t, pcs, true) testCallersEqual(t, pcs, want) }() f1(true) } func TestCallersDoublePanic(t *testing.T) { // Make sure we don't have any extra frames on the stack (due to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 21:36:31 UTC 2023 - 12.1K bytes - Viewed (0) -
src/cmd/trace/pprof.go
return rec } // Slow path: the stack may still be in the map. // Grab the stack's PCs as the source-of-truth. var pcs [pprofMaxStack]uint64 pcsForStack(stack, &pcs) // Check the source-of-truth. var rec *traceviewer.ProfileRecord if existing, ok := m.pcs[pcs]; ok { // In the map. rec = m.stacks[existing] delete(m.stacks, existing) } else { // Not in the map.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 10.1K bytes - Viewed (0) -
src/runtime/pprof/proto.go
} type locInfo struct { // location id assigned by the profileBuilder id uint64 // sequence of PCs, including the fake PCs returned by the traceback // to represent inlined functions // https://github.com/golang/go/blob/d6f2f833c93a41ec1c68e49804b8387a06b131c5/src/runtime/traceback.go#L347-L368 pcs []uintptr // firstPCFrames and firstPCSymbolizeResult hold the results of the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 13 20:40:52 UTC 2023 - 25.7K bytes - Viewed (0) -
src/runtime/tracestack.go
type traceStackTable struct { tab traceMap } // put returns a unique id for the stack trace pcs and caches it in the table, // if it sees the trace for the first time. func (t *traceStackTable) put(pcs []uintptr) uint64 { if len(pcs) == 0 { return 0 } id, _ := t.tab.put(noescape(unsafe.Pointer(&pcs[0])), uintptr(len(pcs))*unsafe.Sizeof(uintptr(0))) return id }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 14:38:56 UTC 2024 - 11K bytes - Viewed (0) -
src/internal/trace/generation.go
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/log/slog/logger.go
if !w.h.Enabled(context.Background(), level) { return 0, nil } var pc uintptr if !internal.IgnorePC && w.capturePC { // skip [runtime.Callers, w.Write, Logger.Output, log.Print] var pcs [1]uintptr runtime.Callers(4, pcs[:]) pc = pcs[0] } // Remove final newline. origLen := len(buf) // Report that the entire buf was written. if len(buf) > 0 && buf[len(buf)-1] == '\n' { buf = buf[:len(buf)-1] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 18:26:18 UTC 2024 - 10.2K bytes - Viewed (0) -
src/runtime/select.go
// statements in packages compiled without -race (e.g., // ensureSigM in runtime/signal_unix.go). var pcs []uintptr if raceenabled && pc0 != nil { pc1 := (*[1 << 16]uintptr)(unsafe.Pointer(pc0)) pcs = pc1[:ncases:ncases] } casePC := func(casi int) uintptr { if pcs == nil { return 0 } return pcs[casi] } var t0 int64 if blockprofilerate > 0 { t0 = cputicks() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 13 21:36:04 UTC 2024 - 15K bytes - Viewed (0) -
src/runtime/stack_test.go
} // Test that profiles correctly jump over systemstack, // including nested systemstack calls. pcs := make([]uintptr, 20) pcs = pcs[:TracebackSystemstack(pcs, 5)] // Check that runtime.TracebackSystemstack appears five times // and that we see TestTracebackSystemstack. countIn, countOut := 0, 0 frames := CallersFrames(pcs) var tb strings.Builder for { frame, more := frames.Next()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 23.1K bytes - Viewed (0) -
src/runtime/pprof/proto_test.go
} if traceback == "Go+C" { // The test code was arranged to have PCs from C and // they are not symbolized. // Check no Location containing those unsymbolized PCs contains multiple lines. for i, loc := range prof.Location { if !symbolized(loc) && len(loc.Line) > 1 { t.Errorf("Location[%d] contains unsymbolized PCs and multiple lines: %v", i, loc) } } } }) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 23:21:53 UTC 2024 - 17K bytes - Viewed (0) -
src/internal/trace/oldtrace.go
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{ pc: pc, funcID: stringID(f.Fn), fileID: stringID(f.File), line: uint64(f.Line), } } pr.Stacks = nil pr.PCs = nil evt.stacks.compactify() return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 17.2K bytes - Viewed (0)