Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 199 for funcname (0.29 sec)

  1. pkg/kubelet/container/testing/fake_runtime.go

    func (f *FakeRuntime) AssertCallCounts(funcName string, expectedCount int) bool {
    	f.Lock()
    	defer f.Unlock()
    	actualCount := 0
    	for _, c := range f.CalledFunctions {
    		if funcName == c {
    			actualCount += 1
    		}
    	}
    	if expectedCount != actualCount {
    		f.T.Errorf("AssertCallCounts: expected %s to be called %d times, but was actually called %d times.", funcName, expectedCount, actualCount)
    		return false
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. cmd/metrics.go

    		registry,
    	}
    
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = "handler.MetricsLegacy"
    			tc.ResponseRecorder.LogErrBody = true
    		}
    
    		mfs, err := gatherers.Gather()
    		if err != nil {
    			if len(mfs) == 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ir/func.go

    func (f *Func) SetWBPos(pos src.XPos) {
    	if base.Debug.WB != 0 {
    		base.WarnfAt(pos, "write barrier")
    	}
    	if !f.WBPos.IsKnown() {
    		f.WBPos = pos
    	}
    }
    
    // FuncName returns the name (without the package) of the function f.
    func FuncName(f *Func) string {
    	if f == nil || f.Nname == nil {
    		return "<nil>"
    	}
    	return f.Sym().Name
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. src/debug/gosym/pclntab.go

    		if b&0x80 == 0 {
    			break
    		}
    	}
    	*pp = p
    	return v
    }
    
    // funcName returns the name of the function found at off.
    func (t *LineTable) funcName(off uint32) string {
    	if s, ok := t.funcNames[off]; ok {
    		return s
    	}
    	i := bytes.IndexByte(t.funcnametab[off:], 0)
    	s := string(t.funcnametab[off : off+uint32(i)])
    	t.funcNames[off] = s
    	return s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 19:43:24 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/report/source.go

    		// Remember the first function name encountered per source line
    		// and assume that that line belongs to that function.
    		if _, ok := file.funcName[f.Line]; !ok {
    			file.funcName[f.Line] = f.Func
    		}
    	}
    }
    
    // synthAsm is the special disassembler value used for instructions without an object file.
    const synthAsm = ""
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  6. src/runtime/pprof/proto.go

    	for _, frame := range b.deck.frames {
    		// Write out each line in frame expansion.
    		funcName := runtime_FrameSymbolName(&frame)
    		funcID := uint64(b.funcs[funcName])
    		if funcID == 0 {
    			funcID = uint64(len(b.funcs)) + 1
    			b.funcs[funcName] = int(funcID)
    			newFuncs = append(newFuncs, newFunc{
    				id:        funcID,
    				name:      funcName,
    				file:      frame.File,
    				startLine: int64(runtime_FrameStartLine(&frame)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 13 20:40:52 UTC 2023
    - 25.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/staticinit/sched.go

    		}
    		return false
    	}
    
    	for r.Op() == ir.OCONVNOP && !types.Identical(r.Type(), typ) {
    		r = r.(*ir.ConvExpr).X
    	}
    
    	switch r.Op() {
    	case ir.OMETHEXPR:
    		r = r.(*ir.SelectorExpr).FuncName()
    		fallthrough
    	case ir.ONAME:
    		r := r.(*ir.Name)
    		if s.staticcopy(l, loff, r, typ) {
    			return true
    		}
    		// We may have skipped past one or more OCONVNOPs, so
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/inline/inlheur/scoring.go

    	if len(fn.Body) == 0 {
    		return
    	}
    	enableDebugTraceIfEnv()
    
    	nameFinder := newNameFinder(fn)
    
    	if debugTrace&debugTraceScoring != 0 {
    		fmt.Fprintf(os.Stderr, "=-= ScoreCalls(%v)\n", ir.FuncName(fn))
    	}
    
    	// If this is an inlinable function, use the precomputed
    	// call site table for it. If the function wasn't an inline
    	// candidate, collect a callsite table for it now.
    	var cstab CallSiteTab
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  9. cmd/auth-handler.go

    			// Verify if date headers are set, if not reject the request
    			amzDate, errCode := parseAmzDateHeader(r)
    			if errCode != ErrNone {
    				if ok {
    					tc.FuncName = "handler.Auth"
    					tc.ResponseRecorder.LogErrBody = true
    				}
    
    				// All our internal APIs are sensitive towards Date
    				// header, for all requests where Date header is not
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 26K bytes
    - Viewed (0)
  10. src/runtime/stack.go

    				// Live analysis wrong?
    				getg().m.traceback = 2
    				print("runtime: bad pointer in frame ", funcname(f), " at ", pp, ": ", hex(p), "\n")
    				throw("invalid pointer found on stack")
    			}
    			if minp <= p && p < maxp {
    				if stackDebug >= 3 {
    					print("adjust ptr ", hex(p), " ", funcname(f), "\n")
    				}
    				if useCAS {
    					ppu := (*unsafe.Pointer)(unsafe.Pointer(pp))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top