Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for hotThread (0.15 sec)

  1. src/internal/trace/resources.go

    package trace
    
    import "fmt"
    
    // ThreadID is the runtime-internal M structure's ID. This is unique
    // for each OS thread.
    type ThreadID int64
    
    // NoThread indicates that the relevant events don't correspond to any
    // thread in particular.
    const NoThread = ThreadID(-1)
    
    // ProcID is the runtime-internal G structure's id field. This is unique
    // for each P.
    type ProcID int64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. src/internal/trace/oldtrace.go

    				// the states _Gidle or _Grunnable.
    				it.extra = append(it.extra, Event{
    					ctx: schedCtx{
    						// G: GoID(gid),
    						G: NoGoroutine,
    						P: NoProc,
    						M: NoThread,
    					},
    					table: it.evt,
    					base: baseEvent{
    						typ:  go122.EvGoStatus,
    						time: Time(ev.Ts),
    						args: timedEventArgs{uint64(gid), ^uint64(0), uint64(go122.GoRunnable)},
    					},
    				})
    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/internal/trace/testtrace/validation.go

    		tr := ev.StateTransition()
    		if tr.Resource.Kind != trace.ResourceGoroutine {
    			return false
    		}
    		from, to := tr.Goroutine()
    		return from == trace.GoUndetermined && to == trace.GoSyscall
    	}
    	if m == trace.NoThread && !lenient() {
    		e.Errorf("must have thread, but thread ID is none")
    		return nil
    	}
    	s, ok := v.ms[m]
    	if !ok {
    		s = &schedContext{M: m, P: trace.NoProc, G: trace.NoGoroutine}
    		v.ms[m] = s
    		return s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. src/internal/trace/internal/testgen/go122/trace.go

    			b.writeEventsTo(tw)
    			b = g.newStructuralBatch()
    		}
    	}
    	b.writeEventsTo(tw)
    }
    
    func (g *Generation) newStructuralBatch() *Batch {
    	return &Batch{gen: g, thread: trace.NoThread}
    }
    
    // Batch represents an event batch.
    type Batch struct {
    	gen       *Generation
    	thread    trace.ThreadID
    	timestamp Time
    	size      uint64
    	events    []raw.Event
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. src/internal/trace/order.go

    // it doesn't.
    func validateCtx(ctx schedCtx, reqs event.SchedReqs) error {
    	// Check thread requirements.
    	if reqs.Thread == event.MustHave && ctx.M == NoThread {
    		return fmt.Errorf("expected a thread but didn't have one")
    	} else if reqs.Thread == event.MustNotHave && ctx.M != NoThread {
    		return fmt.Errorf("expected no thread but had one")
    	}
    
    	// Check proc requirements.
    	if reqs.Proc == event.MustHave && ctx.P == NoProc {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  6. src/internal/trace/event.go

    //
    // Note that for thread state transitions this always refers to the
    // state before the transition. For example, if a thread is just
    // starting to run, then this will return NoThread.
    //
    // Note: tracking thread state is not currently supported, so this
    // will always return a valid thread ID. However thread state transitions
    // may be tracked in the future, and callers must be robust to this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  7. src/internal/trace/traceviewer/static/trace_viewer_full.html

    Thread$/,/^CrGpuMain$/]);CATEGORY_THREAD_MAP.set('IO',[/IOThread/]);CATEGORY_THREAD_MAP.set('raster',[/CompositorTileWorker/]);CATEGORY_THREAD_MAP.set('renderer_compositor',[/^Compositor$/]);CATEGORY_THREAD_MAP.set('renderer_main',[/^CrRendererMain$/]);CATEGORY_THREAD_MAP.set('total_rendering',[/^Browser Compositor$/,/^Chrome_InProcGpuThread$/,/^Compositor$/,/CompositorTileWorker/,/^CrBrowserMain$/,/^CrGpuMain$/,/^CrRendererMain$/,/IOThread/,/^VizCompositorThread$/]);const ALL_CATEGORIES=[...CAT...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
Back to top