Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for PCs (0.03 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/internal/trace/base.go

    			time: s.time,
    		},
    	}
    	e.base.args[0] = uint64(s.stack)
    	return e
    }
    
    // stack represents a goroutine stack sample.
    type stack struct {
    	pcs []uint64
    }
    
    func (s stack) String() string {
    	var sb strings.Builder
    	for _, frame := range s.pcs {
    		fmt.Fprintf(&sb, "\t%#v\n", frame)
    	}
    	return sb.String()
    }
    
    // frame represents a single stack frame.
    type frame struct {
    	pc     uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. src/runtime/pprof/protomem_test.go

    	"slices"
    	"strings"
    	"testing"
    )
    
    func TestConvertMemProfile(t *testing.T) {
    	addr1, addr2, map1, map2 := testPCs(t)
    
    	// MemProfileRecord stacks are return PCs, so add one to the
    	// addresses recorded in the "profile". The proto profile
    	// locations are call PCs, so conversion will subtract one
    	// from these and get back to addr1 and addr2.
    	a1, a2 := uintptr(addr1)+1, uintptr(addr2)+1
    	rate := int64(512 * 1024)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. src/cmd/link/internal/sym/compilation_unit.go

    // loaded by the linker.
    //
    // These are used for both DWARF and pclntab generation.
    type CompilationUnit struct {
    	Lib       *Library      // Our library
    	PclnIndex int           // Index of this CU in pclntab
    	PCs       []dwarf.Range // PC ranges, relative to Textp[0]
    	DWInfo    *dwarf.DWDie  // CU root DIE
    	FileTable []string      // The file table used in this compilation unit.
    
    	Consts    LoaderSym   // Package constants DIEs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 20:39:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. platforms/software/publish/src/main/java/org/gradle/api/publish/internal/mapping/VersionMappingComponentDependencyResolver.java

                        }
                    } else if (rcs instanceof ProjectComponentSelector) {
                        ProjectComponentSelectorInternal pcs = (ProjectComponentSelectorInternal) rcs;
                        if (pcs.getIdentityPath().equals(identityPath)) {
                            return getModuleVersionId(selected);
                        }
                    }
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 22:25:49 UTC 2023
    - 6.9K bytes
    - Viewed (0)
Back to top