Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for TaskID (0.34 sec)

  1. 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)
  2. 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)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/execution/ResolveTaskMutationsBuildOperationTypeIntegrationTest.groovy

            def op = operations.first(ResolveTaskMutationsBuildOperationType) {
                it.details.taskPath == taskPath
            }
            op.details.buildPath == ":"
            op.details.taskId != null
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 27 12:00:57 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  4. 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)
  5. src/internal/trace/event/event.go

    	"gstatus", // G status
    	"g",       // trace.GoID
    	"m",       // trace.ThreadID
    	"p",       // trace.ProcID
    	"string",  // string ID
    	"stack",   // stack ID
    	"value",   // uint64
    	"task",    // trace.TaskID
    }
    
    // Names is a helper that produces a mapping of event names to event types.
    func Names(specs []Spec) map[string]Type {
    	nameToType := make(map[string]Type)
    	for i, spec := range specs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/trace/tasks.go

    			Elapsed    time.Duration
    			Goroutine  trace.GoID
    			What       string
    			// TODO: include stack trace of creation time
    		}
    		type task struct {
    			WhenString string
    			ID         trace.TaskID
    			Duration   time.Duration
    			Complete   bool
    			Events     []event
    			Start, End time.Duration // Time since the beginning of the trace
    			GCTime     time.Duration
    		}
    		var tasks []task
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. src/internal/trace/order.go

    	// reused, so we don't care about a Begin after an End.
    	id := TaskID(ev.args[0])
    	if _, ok := o.activeTasks[id]; ok {
    		return curCtx, false, fmt.Errorf("task ID conflict: %d", id)
    	}
    	// Get the parent ID, but don't validate it. There's no guarantee
    	// we actually have information on whether it's active.
    	parentID := TaskID(ev.args[1])
    	if parentID == BackgroundTask {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  9. src/internal/trace/reader.go

    		return &Reader{
    			r: br,
    			order: ordering{
    				mStates:     make(map[ThreadID]*mState),
    				pStates:     make(map[ProcID]*pState),
    				gStates:     make(map[GoID]*gState),
    				activeTasks: make(map[TaskID]taskState),
    			},
    			// Don't emit a sync event when we first go to emit events.
    			emittedSync: true,
    		}, nil
    	default:
    		return nil, fmt.Errorf("unknown or unsupported version go 1.%d", v)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultTaskContainerTest.groovy

        }
    
        private <U extends TaskInternal> U task(final String name, Class<U> type) {
            def taskId = taskIdentityFactory.create(name, type, project)
            Mock(type, name: "[task" + taskId.id + "]") {
                getName() >> name
                getTaskDependency() >> Mock(TaskDependency)
                getTaskIdentity() >> taskId
            } as U
        }
    
        private Task addTask(String name) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 14:36:44 UTC 2024
    - 44.9K bytes
    - Viewed (0)
Back to top