Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for PCs (0.02 sec)

  1. 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)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/eventclock/fake.go

    // of GoRoutineCounter
    var _ counter.GoRoutineCounter = (*waitGroupCounter)(nil)
    
    func (wgc *waitGroupCounter) Add(delta int) {
    	klogV := klog.V(7)
    	if klogV.Enabled() {
    		var pcs [10]uintptr
    		nCallers := runtime.Callers(2, pcs[:])
    		frames := runtime.CallersFrames(pcs[:nCallers])
    		callers := make(stackExcerpt, 0, 10)
    		more := frames != nil
    		boundary := 1
    		for i := 0; more && len(callers) < cap(callers); i++ {
    			var frame runtime.Frame
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/pprof/pprof.go

    		if entry.Tag == dwarf.TagSubprogram {
    			ranges, err := f.dwarf.Ranges(entry)
    			if err != nil {
    				return nil
    			}
    			for _, pcs := range ranges {
    				if pcs[0] <= addr && addr < pcs[1] {
    					var ok bool
    					// TODO: AT_linkage_name, AT_MIPS_linkage_name.
    					name, ok = entry.Val(dwarf.AttrName).(string)
    					if ok {
    						break FindName
    					}
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. src/internal/pkgbits/encoder.go

    	// stack frame for sync markers within the relocation header.
    	var frames []string
    	if !w.encodingRelocHeader && w.p.syncFrames > 0 {
    		pcs := make([]uintptr, w.p.syncFrames)
    		n := runtime.Callers(2, pcs)
    		frames = fmtFrames(pcs[:n]...)
    	}
    
    	// TODO(mdempsky): Save space by writing out stack frames as a
    	// linked list so we can share common stack frames.
    	w.rawUvarint(uint64(m))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 10 23:26:58 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  10. src/runtime/pprof/protomem.go

    	values := []int64{0, 0, 0, 0}
    	var locs []uint64
    	for _, r := range p {
    		hideRuntime := true
    		for tries := 0; tries < 2; tries++ {
    			stk := r.Stack
    			// For heap profiles, all stack
    			// addresses are return PCs, which is
    			// what appendLocsForStack expects.
    			if hideRuntime {
    				for i, addr := range stk {
    					if f := runtime.FuncForPC(addr); f != nil && strings.HasPrefix(f.Name(), "runtime.") {
    						continue
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top