Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 805 for goroutineID (0.89 sec)

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

    		if !main {
    			ignoreGoroutines[goroutineID()] = true
    		}
    
    		// Start the next goroutine now that there are no more recursions left
    		// for this current goroutine.
    		go recurseThenCallGo(w, frames-1, numFrames, false)
    		return
    	}
    	recurseThenCallGo(w, frames, goroutines-1, main)
    }
    
    func goroutineID() string {
    	buf := make([]byte, 128)
    	runtime.Stack(buf, false)
    	prefix := []byte("goroutine ")
    	var found bool
    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/cmd/trace/goroutines.go

    			ExecTimePercent     string
    			MaxTotal            time.Duration
    			Goroutines          []goroutine
    			NonOverlappingStats []string
    			RangeStats          []string
    		}{
    			Name:                name,
    			N:                   len(goroutines),
    			ExecTimePercent:     execTimePercent,
    			MaxTotal:            maxTotalTime,
    			Goroutines:          goroutines,
    			NonOverlappingStats: allNonOverlappingStats,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. test/chan/goroutines.go

    // run
    
    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Torture test for goroutines.
    // Make a lot of goroutines, threaded together, and tear them down cleanly.
    
    package main
    
    import (
    	"os"
    	"strconv"
    )
    
    func f(left, right chan int) {
    	left <- <-right
    }
    
    func main() {
    	var n = 10000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 743 bytes
    - Viewed (0)
  4. tests/util/leak/check.go

    	if err != nil {
    		t.Errorf("failed to fetch pre-test goroutines: %v", err)
    		return
    	}
    	existing := map[uint64]struct{}{}
    	for _, g := range existingRaw {
    		existing[g.id] = struct{}{}
    	}
    	filter := func(in []*goroutine) []*goroutine {
    		res := make([]*goroutine, 0, len(in))
    		for _, i := range in {
    			if _, f := existing[i.id]; !f {
    				// This was not in the goroutines list when the test started
    				res = append(res, i)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 20 10:22:38 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  5. src/cmd/trace/goroutinegen.go

    	gs.augmentName(st.Stack)
    
    	// Handle the goroutine state transition.
    	from, to := st.Goroutine()
    	if from == to {
    		// Filter out no-op events.
    		return
    	}
    	if from.Executing() && !to.Executing() {
    		if to == trace.GoWaiting {
    			// Goroutine started blocking.
    			gs.block(ev.Time(), ev.Stack(), st.Reason, ctx)
    		} else {
    			gs.stop(ev.Time(), ev.Stack(), ctx)
    		}
    	}
    	if !from.Executing() && to.Executing() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. src/internal/trace/summary.go

    	CreationTime Time   // Timestamp of the first appearance in the trace.
    	StartTime    Time   // Timestamp of the first time it started running. 0 if the goroutine never ran.
    	EndTime      Time   // Timestamp of when the goroutine exited. 0 if the goroutine never exited.
    
    	// List of regions in the goroutine, sorted based on the start time.
    	Regions []*UserRegionSummary
    
    	// Statistics of execution time during the goroutine execution.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  7. src/runtime/pprof/runtime.go

    // runtime_getProfLabel is defined in runtime/proflabel.go.
    func runtime_getProfLabel() unsafe.Pointer
    
    // SetGoroutineLabels sets the current goroutine's labels to match ctx.
    // A new goroutine inherits the labels of the goroutine that created it.
    // This is a lower-level API than [Do], which should be used instead when possible.
    func SetGoroutineLabels(ctx context.Context) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. src/runtime/trace/trace.go

    // additional information such as the category of the message and
    // which goroutine called [Log]. The execution tracer provides UIs to filter
    // and group goroutines using the log category and the message supplied
    // in [Log].
    //
    // A region is for logging a time interval during a goroutine's execution.
    // By definition, a region starts and ends in the same goroutine.
    // Regions can be nested to represent subintervals.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 00:47:09 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  9. src/runtime/preempt.go

    	// readying it when done.
    	stopped bool
    }
    
    // suspendG suspends goroutine gp at a safe-point and returns the
    // state of the suspended goroutine. The caller gets read access to
    // the goroutine until it calls resumeG.
    //
    // It is safe for multiple callers to attempt to suspend the same
    // goroutine at the same time. The goroutine may execute between
    // subsequent successful suspend operations. The current
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  10. src/runtime/runtime2.go

    }
    
    // ancestorInfo records details of where a goroutine was started.
    type ancestorInfo struct {
    	pcs  []uintptr // pcs from the stack of this goroutine
    	goid uint64    // goroutine id of this goroutine; original goroutine possibly dead
    	gopc uintptr   // pc of go statement that created this goroutine
    }
    
    // A waitReason explains why a goroutine has been stopped.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
Back to top