- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 98 for pcsz (0.05 sec)
-
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/pprof/testdata/mappingtest/main.go
// This program outputs a CPU profile that includes // both Go and Cgo stacks. This is used by the mapping info // tests in runtime/pprof. // // If SETCGOTRACEBACK=1 is set, the CPU profile will includes // PCs from C side but they will not be symbolized. package main /* #include <stdint.h> #include <stdlib.h> int cpuHogCSalt1 = 0; int cpuHogCSalt2 = 0; void CPUHogCFunction0(int foo) { int i;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 08 02:40:04 UTC 2019 - 2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/select.go
order := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(types.Types[types.TUINT16], 2*int64(ncas))) var pc0, pcs ir.Node if base.Flag.Race { pcs = typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(types.Types[types.TUINTPTR], int64(ncas))) pc0 = typecheck.Expr(typecheck.NodAddr(ir.NewIndexExpr(base.Pos, pcs, ir.NewInt(base.Pos, 0)))) } else { pc0 = typecheck.NodNil() } // register cases
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 01:53:41 UTC 2023 - 7.8K bytes - Viewed (0) -
utils/utils.go
} return filepath.ToSlash(s) + "/" } // FileWithLineNum return the file name and line number of the current file func FileWithLineNum() string { pcs := [13]uintptr{} // the third caller usually from gorm internal len := runtime.Callers(3, pcs[:]) frames := runtime.CallersFrames(pcs[:len]) for i := 0; i < len; i++ { // second return value is "more", not "ok" frame, _ := frames.Next()
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Apr 22 06:43:02 UTC 2024 - 3.8K bytes - Viewed (0) -
src/runtime/pprof/pprof_test.go
return cpuHog0(x, n) } //go:noinline func dumpCallers(pcs []uintptr) { if pcs == nil { return } skip := 2 // Callers and dumpCallers runtime.Callers(skip, pcs) } //go:noinline func inlinedCallerDump(pcs []uintptr) { inlinedCalleeDump(pcs) } func inlinedCalleeDump(pcs []uintptr) { dumpCallers(pcs) } type inlineWrapperInterface interface {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 68.8K 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) -
test/fixedbugs/issue44344.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue #44344: a crash in DWARF scope generation (trying to // scope the PCs of a function that was inlined away). package main func main() { pv := []int{3, 4, 5} if pv[1] != 9 { pv = append(pv, 9) } tryit := func() bool { lpv := len(pv) if lpv == 101 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 19 14:46:21 UTC 2021 - 575 bytes - Viewed (0) -
test/heapsampling.go
a := make(map[int]allocStat) for _, r := range records { var pcs []uintptr for _, s := range r.Stack0 { if s == 0 { break } pcs = append(pcs, s) } frames := runtime.CallersFrames(pcs) line := 0 for { frame, more := frames.Next() name := frame.Function if line == 0 { line = frame.Line }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 27 21:36:06 UTC 2022 - 9.7K 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/runtime/unsafepoint_test.go
if err != nil { t.Fatalf("can't parse pc %s: %v", parts[1], err) } if entry == 0 { entry = pc } // Note that some platforms do ASLR, so the PCs in the disassembly // don't match PCs in the address space. Only offsets from function // entry make sense. unsafe := runtime.UnsafePoint(f.Entry() + uintptr(pc-entry)) t.Logf("unsafe: %v\n", unsafe) instructionCount++ if unsafe {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 11 20:24:56 UTC 2023 - 3.3K bytes - Viewed (0)