Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for TaskID (0.2 sec)

  1. src/internal/trace/summary_test.go

    	type task struct {
    		name       string
    		parent     *trace.TaskID
    		children   []trace.TaskID
    		logs       []trace.Log
    		goroutines []trace.GoID
    	}
    	parent := func(id trace.TaskID) *trace.TaskID {
    		p := new(trace.TaskID)
    		*p = id
    		return p
    	}
    	wantTasks := map[trace.TaskID]task{
    		trace.BackgroundTask: {
    			// The background task (0) is never any task's parent.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/internal/trace/trace_test.go

    			kind trace.EventKind
    			task trace.TaskID
    			args []string
    		}
    		want := []evDesc{
    			{trace.EventTaskBegin, trace.TaskID(1), []string{"task0"}},
    			{trace.EventRegionBegin, trace.TaskID(1), []string{"region0"}},
    			{trace.EventRegionBegin, trace.TaskID(1), []string{"region1"}},
    			{trace.EventLog, trace.TaskID(1), []string{"key0", "0123456789abcdef"}},
    			{trace.EventRegionEnd, trace.TaskID(1), []string{"region1"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. src/cmd/trace/gen.go

    		endStack = region.End.Stack()
    		endTime = region.End.Time()
    		goroutine = region.End.Goroutine()
    	}
    	if goroutine == trace.NoGoroutine {
    		return
    	}
    	arg := struct {
    		TaskID uint64 `json:"taskid"`
    	}{
    		TaskID: uint64(region.TaskID),
    	}
    	ctx.AsyncSlice(traceviewer.AsyncSliceEvent{
    		SliceEvent: traceviewer.SliceEvent{
    			Name:     region.Name,
    			Ts:       ctx.elapsed(startTime),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskCreationBuildOperationIntegrationTest.groovy

            def allRegisterIds = allRegisterOps*.details*.taskId
            allRegisterIds == allRegisterIds as Set
    
            // all realize ops have unique task id
            def allRealizeOps = buildOperations.all(RealizeTaskBuildOperationType)
            def allRealizeIds = allRealizeOps*.details*.taskId
            allRealizeIds == allRealizeIds as Set
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. src/cmd/trace/regions.go

    {{end}}
    </tr>
    {{range .Regions}}
    	<tr>
    		<td> <a href="/trace?goid={{.Goroutine}}">{{.Goroutine}}</a> </td>
    		<td> {{if .TaskID}}<a href="/trace?focustask={{.TaskID}}">{{.TaskID}}</a>{{end}} </td>
    		<td> {{ .TotalTime.String }} </td>
    		<td>
    			<div class="stacked-bar-graph">
    			{{$Region := .}}
    			{{range $.NonOverlappingStats}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  6. src/internal/trace/summary.go

    	}
    	return descendents
    }
    
    // UserRegionSummary represents a region and goroutine execution stats
    // while the region was active. (For v2 traces.)
    type UserRegionSummary struct {
    	TaskID TaskID
    	Name   string
    
    	// Region start event. Normally EventRegionBegin event or nil,
    	// but can be a state transition event from NotExist or Undetermined
    	// if the region is a synthetic region representing task inheritance
    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/internal/trace/oldtrace.go

    		name, _ := it.evt.strings.get(stringID(ev.Args[2]))
    		it.tasks[TaskID(ev.Args[0])] = taskState{name: name, parentID: TaskID(ev.Args[1])}
    	case oldtrace.EvUserTaskEnd:
    		mappedType = go122.EvUserTaskEnd
    		// Event.Task expects the parent and name to be smuggled in extra args
    		// and as extra strings.
    		ts, ok := it.tasks[TaskID(ev.Args[0])]
    		if ok {
    			delete(it.tasks, TaskID(ev.Args[0]))
    			mappedArgs = timedEventArgs{
    				ev.Args[0],
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. src/internal/trace/event.go

    	Name string
    
    	// Value is the value of the attribute.
    	Value Value
    }
    
    // TaskID is the internal ID of a task used to disambiguate tasks (even if they
    // are of the same type).
    type TaskID uint64
    
    const (
    	// NoTask indicates the lack of a task.
    	NoTask = TaskID(^uint64(0))
    
    	// BackgroundTask is the global task that events are attached to if there was
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  9. src/internal/trace/internal/oldtrace/parser.go

    			p.g = 0
    
    			gs[ev.G] = g
    			ps[ev.P] = p
    		case EvUserTaskCreate:
    			taskid := ev.Args[0]
    			if prevEv, ok := tasks[taskid]; ok {
    				return fmt.Errorf("task id conflicts (id:%d), %q vs %q", taskid, ev, prevEv)
    			}
    			tasks[ev.Args[0]] = ev
    
    		case EvUserTaskEnd:
    			taskid := ev.Args[0]
    			delete(tasks, taskid)
    
    		case EvUserRegion:
    			mode := ev.Args[1]
    			regions := activeRegions[ev.G]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  10. src/internal/trace/testtrace/validation.go

    type Validator struct {
    	lastTs   trace.Time
    	gs       map[trace.GoID]*goState
    	ps       map[trace.ProcID]*procState
    	ms       map[trace.ThreadID]*schedContext
    	ranges   map[trace.ResourceID][]string
    	tasks    map[trace.TaskID]string
    	seenSync bool
    	Go121    bool
    }
    
    type schedContext struct {
    	M trace.ThreadID
    	P trace.ProcID
    	G trace.GoID
    }
    
    type goState struct {
    	state   trace.GoState
    	binding *schedContext
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top