Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. pilot/pkg/config/kube/gateway/deploymentcontroller_test.go

    	}
    	proxyConfig := model.GetProxyConfigs(store, mesh.DefaultMeshConfig())
    	tests := []struct {
    		name                     string
    		gw                       k8sbeta.Gateway
    		objects                  []runtime.Object
    		pcs                      *model.ProxyConfigs
    		values                   string
    		discoveryNamespaceFilter kubetypes.DynamicObjectFilter
    		ignore                   bool
    	}{
    		{
    			name: "simple",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  6. src/net/http/export_test.go

    // that it's doing so. This is to simulate the server closing connections
    // on the Transport.
    func ExportCloseTransportConnsAbruptly(tr *Transport) {
    	tr.idleMu.Lock()
    	for _, pcs := range tr.idleConn {
    		for _, pc := range pcs {
    			pc.conn.Close()
    		}
    	}
    	tr.idleMu.Unlock()
    }
    
    // ResponseWriterConnForTesting returns w's underlying connection, if w
    // is a regular *response ResponseWriter.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. src/runtime/symtab.go

    			f = nil
    
    			// When CallersFrame is invoked using the PC list returned by Callers,
    			// the PC list includes virtual PCs corresponding to each outer frame
    			// around an innermost real inlined PC.
    			// We also want to support code passing in a PC list extracted from a
    			// stack trace, and there only the real PCs are printed, not the virtual ones.
    			// So check to see if the implied virtual PC for this PC (obtained from the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  8. src/internal/trace/parser.go

    	EvBatch             = 1  // start of per-P batch of events [pid, timestamp]
    	EvFrequency         = 2  // contains tracer timer frequency [frequency (ticks per second)]
    	EvStack             = 3  // stack [stack id, number of PCs, array of {PC, func string ID, file string ID, line}]
    	EvGomaxprocs        = 4  // current value of GOMAXPROCS [timestamp, GOMAXPROCS, stack id]
    	EvProcStart         = 5  // start of P [timestamp, thread id]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:31:04 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. src/runtime/symtabinl_test.go

    		"tiuInlined2:7 tiuTest:11":               0,
    		"tiuTest:12":                             0,
    	}
    	wantStart := map[string]int{
    		"tiuInlined1": 2,
    		"tiuInlined2": 5,
    		"tiuTest":     9,
    	}
    
    	// Iterate over the PCs in tiuTest and walk the inline stack for each.
    	prevStack := "x"
    	for pc := pc1; pc < pc1+1024 && findfunc(pc) == f; pc += sys.PCQuantum {
    		stack := ""
    		u, uf := newInlineUnwinder(f, pc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. src/internal/trace/internal/oldtrace/parser.go

    type Trace struct {
    	Version version.Version
    
    	// Events is the sorted list of Events in the trace.
    	Events Events
    	// Stacks is the stack traces (stored as slices of PCs), keyed by stack IDs
    	// from the trace.
    	Stacks        map[uint32][]uint64
    	PCs           map[uint64]Frame
    	Strings       map[uint64]string
    	InlineStrings []string
    }
    
    // batchOffset records the byte offset of, and number of events in, a batch. A
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top