Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 446 for Frame (0.04 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/binutils/addr2liner.go

    		return nil, fmt.Errorf("unexpected addr2line output: %s", resp)
    	}
    
    	var stack []plugin.Frame
    	for {
    		frame, end := d.readFrame()
    		if end {
    			break
    		}
    
    		if frame != (plugin.Frame{}) {
    			stack = append(stack, frame)
    		}
    	}
    	return stack, err
    }
    
    // addrInfo returns the stack frame information for a specific program
    // address. It returns nil if the address could not be identified.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. test/fixedbugs/issue25507.go

    // Argument/return areas are part of the parent frame, not the frame itself,
    // so they need to be handled separately.
    
    package main
    
    // >1GB to trigger failure, <2GB to work on 32-bit platforms.
    type large struct {
    	b [1500000000]byte
    }
    
    func (x large) f1() int { // GC_ERROR "stack frame too large"
    	return 5
    }
    
    func f2(x large) int { // GC_ERROR "stack frame too large"
    	return 5
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 17:37:52 UTC 2020
    - 754 bytes
    - Viewed (0)
  3. src/internal/pkgbits/sync.go

    // walkFrames calls visit for each call frame represented by pcs.
    //
    // pcs should be a slice of PCs, as returned by runtime.Callers.
    func walkFrames(pcs []uintptr, visit frameVisitor) {
    	if len(pcs) == 0 {
    		return
    	}
    
    	frames := runtime.CallersFrames(pcs)
    	for {
    		frame, more := frames.Next()
    		visit(frame.File, frame.Line, frame.Function, frame.PC-frame.Entry)
    		if !more {
    			return
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 04 17:12:28 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  4. src/runtime/tracestack.go

    	line   uint64
    }
    
    // makeTraceFrame sets up a traceFrame for a frame.
    func makeTraceFrame(gen uintptr, f Frame) traceFrame {
    	var frame traceFrame
    	frame.PC = f.PC
    
    	fn := f.Function
    	const maxLen = 1 << 10
    	if len(fn) > maxLen {
    		fn = fn[len(fn)-maxLen:]
    	}
    	frame.funcID = trace.stringTab[gen%2].put(gen, fn)
    	frame.line = uint64(f.Line)
    	file := f.File
    	if len(file) > maxLen {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. test/inline_caller.go

    }
    
    //go:noinline
    func testCaller(skp int) frame {
    	skip = skp
    	f() // line 42
    	frame := globalFrame
    	if !frame.ok {
    		panic(fmt.Sprintf("skip=%d runtime.Caller failed", skp))
    	}
    	return frame
    }
    
    type wantFrame struct {
    	funcName string
    	line     int
    }
    
    // -1 means don't care
    var expected = []wantFrame{
    	0: {"main.h", 36},
    	1: {"main.g", 31},
    	2: {"main.f", 27},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 08 21:54:04 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  6. test/fixedbugs/issue19467.dir/z.go

    	ci := runtime.CallersFrames(wg.Callers)
    	frames := make([]runtime.Frame, 0, 4)
    	for {
    		frame, more := ci.Next()
    		frames = append(frames, frame)
    		if !more {
    			break
    		}
    	}
    	expecting := []string{
    		"test/mysync.(*WaitGroup).Add",
    		"test/mysync.(*WaitGroup).Done",
    	}
    	for i := 0; i < 2; i++ {
    		if frames[i].Function != expecting[i] {
    			log.Fatalf("frame %d: got %s, want %s", i, frames[i].Function, expecting[i])
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 17:50:47 UTC 2022
    - 696 bytes
    - Viewed (0)
  7. src/runtime/signal_arm64.go

    	// the stack frame but we're not going back there
    	// anyway.
    	sp := c.sp() - sys.StackAlign // needs only sizeof uint64, but must align the stack
    	c.set_sp(sp)
    	*(*uint64)(unsafe.Pointer(uintptr(sp))) = c.lr()
    	// Make sure a valid frame pointer is saved on the stack so that the
    	// frame pointer checks in adjustframe are happy, if they're enabled.
    	// Frame pointer unwinding won't visit the sigpanic frame, since
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 05 18:16:00 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  8. src/runtime/example_test.go

    			// Return now to avoid processing the zero Frame that would
    			// otherwise be returned by frames.Next below.
    			return
    		}
    
    		pc = pc[:n] // pass only valid pcs to runtime.CallersFrames
    		frames := runtime.CallersFrames(pc)
    
    		// Loop to get frames.
    		// A fixed number of PCs can expand to an indefinite number of Frames.
    		for {
    			frame, more := frames.Next()
    
    			// Process this frame.
    			//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 18 22:05:09 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/tf_executor_ops.mlir

    func.func @enter_parallel_iterations(%arg0: tensor<*xf32>, %arg1: i1) -> tensor<*xf32> {
      %result = tf_executor.graph {
    // CHECK: tf_executor.Enter %{{.*}} frame "some/frame" parallel_iterations 42 : tensor<*xf32>
        %res:2 = tf_executor.Enter %arg0 frame "some/frame" parallel_iterations 42 : tensor<*xf32>
        tf_executor.fetch %res#0 : tensor<*xf32>
      }
      func.return %result : tensor<*xf32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 25.8K bytes
    - Viewed (0)
  10. src/internal/trace/trace_test.go

    				if hogRegion != nil && ev.Goroutine() == hogRegion.Goroutine() {
    					traceSamples++
    					var fns []string
    					ev.Stack().Frames(func(frame trace.StackFrame) bool {
    						if frame.Func != "runtime.goexit" {
    							fns = append(fns, fmt.Sprintf("%s:%d", frame.Func, frame.Line))
    						}
    						return true
    					})
    					stack := strings.Join(fns, "|")
    					traceStacks[stack]++
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top