Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TracebackAncestors (0.22 sec)

  1. src/runtime/testdata/testprog/traceback_ancestors.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"bytes"
    	"fmt"
    	"runtime"
    	"strings"
    )
    
    func init() {
    	register("TracebackAncestors", TracebackAncestors)
    }
    
    const numGoroutines = 3
    const numFrames = 2
    
    func TracebackAncestors() {
    	w := make(chan struct{})
    	recurseThenCallGo(w, numGoroutines, numFrames, true)
    	<-w
    	printStack()
    	close(w)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 17:14:59 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. src/runtime/runtime1.go

    	{name: "traceallocfree", atomic: &debug.traceallocfree},
    	{name: "tracecheckstackownership", value: &debug.traceCheckStackOwnership},
    	{name: "tracebackancestors", value: &debug.tracebackancestors},
    	{name: "tracefpunwindoff", value: &debug.tracefpunwindoff},
    }
    
    func parsedebugvars() {
    	// defaults
    	debug.cgocheck = 1
    	debug.invalidptr = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. src/runtime/stack_test.go

    func TestTracebackAncestors(t *testing.T) {
    	goroutineRegex := regexp.MustCompile(`goroutine [0-9]+ \[`)
    	for _, tracebackDepth := range []int{0, 1, 5, 50} {
    		output := runTestProg(t, "testprog", "TracebackAncestors", fmt.Sprintf("GODEBUG=tracebackancestors=%d", tracebackDepth))
    
    		numGoroutines := 3
    		numFrames := 2
    		ancestorsExpected := numGoroutines
    		if numGoroutines > tracebackDepth {
    			ancestorsExpected = tracebackDepth
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  4. src/runtime/extern.go

    	processors, threads and goroutines.
    
    	schedtrace: setting schedtrace=X causes the scheduler to emit a single line to standard
    	error every X milliseconds, summarizing the scheduler state.
    
    	tracebackancestors: setting tracebackancestors=N extends tracebacks with the stacks at
    	which goroutines were created, where N limits the number of ancestor goroutines to
    	report. This also extends the information returned by runtime.Stack.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  5. src/runtime/runtime2.go

    	gopc          uintptr         // pc of go statement that created this goroutine
    	ancestors     *[]ancestorInfo // ancestor information goroutine(s) that created this goroutine (only used if debug.tracebackancestors)
    	startpc       uintptr         // pc of goroutine function
    	racectx       uintptr
    	waiting       *sudog         // sudog structures this g is waiting on (that have a valid elem ptr); in lock order
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  6. src/runtime/proc.go

    	// Copy all prior info, except for the root goroutine (goid 0).
    	if debug.tracebackancestors <= 0 || callergp.goid == 0 {
    		return nil
    	}
    	var callerAncestors []ancestorInfo
    	if callergp.ancestors != nil {
    		callerAncestors = *callergp.ancestors
    	}
    	n := int32(len(callerAncestors)) + 1
    	if n > debug.tracebackancestors {
    		n = debug.tracebackancestors
    	}
    	ancestors := make([]ancestorInfo, n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top