- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 140 for newTask (0.15 sec)
-
src/internal/trace/testdata/testprog/annotations-stress.go
"time" ) func main() { baseCtx := context.Background() // Create a task that starts and ends entirely outside of the trace. ctx0, t0 := trace.NewTask(baseCtx, "parent") // Create a task that starts before the trace and ends during the trace. ctx1, t1 := trace.NewTask(ctx0, "type1") // Start tracing. if err := trace.Start(os.Stdout); err != nil { log.Fatalf("failed to start tracing: %v", err) } t1.End()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.8K bytes - Viewed (0) -
src/runtime/trace/annotation_test.go
) func BenchmarkStartRegion(b *testing.B) { b.ReportAllocs() ctx, task := NewTask(context.Background(), "benchmark") defer task.End() b.RunParallel(func(pb *testing.PB) { for pb.Next() { StartRegion(ctx, "region").End() } }) } func BenchmarkNewTask(b *testing.B) { b.ReportAllocs() pctx, task := NewTask(context.Background(), "benchmark") defer task.End() b.RunParallel(func(pb *testing.PB) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 16:44:47 UTC 2024 - 721 bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultTaskContainerTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 14:36:44 UTC 2024 - 44.9K bytes - Viewed (0) -
testing/integ-test/src/integTest/groovy/org/gradle/integtests/CacheProjectIntegrationTest.groovy
TestFile.Snapshot classFileSnapshot = classFile.snapshot() testBuild("hello2", "Hello 2") classFile.assertHasNotChangedSince(classFileSnapshot) modifyLargeBuildScript() testBuild("newTask", "I am new") classFile.assertHasChangedSince(classFileSnapshot) } @Issue("https://github.com/gradle/gradle/issues/13367") @Test
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 7.3K bytes - Viewed (0) -
src/runtime/trace/annotation.go
// call is used in the latency measurement. // // ctx, task := trace.NewTask(ctx, "awesomeTask") // trace.WithRegion(ctx, "preparation", prepWork) // // preparation of the task // go func() { // continue processing the task in a separate goroutine. // defer task.End() // trace.WithRegion(ctx, "remainingWork", remainingWork) // }() func NewTask(pctx context.Context, taskType string) (ctx context.Context, task *Task) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 20 00:47:09 UTC 2023 - 6.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt
} } // Don't delegate to schedule() because that enforces shutdown rules. val newTask = AwaitIdleTask() if (scheduleAndDecide(newTask, 0L, recurrence = false)) { taskRunner.kickCoordinator(this) } return newTask.latch } } private class AwaitIdleTask : Task("$okHttpName awaitIdle", cancelable = false) { val latch = CountDownLatch(1)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.5K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/annotations.go
// Start tracing. if err := trace.Start(os.Stdout); err != nil { log.Fatalf("failed to start tracing: %v", err) } // Beginning of traced execution. var wg sync.WaitGroup ctx, task := trace.NewTask(bgctx, "task0") // EvUserTaskCreate("task0") trace.StartRegion(ctx, "task0 region") wg.Add(1) go func() { defer wg.Done() defer task.End() // EvUserTaskEnd("task0")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.4K bytes - Viewed (0) -
src/runtime/trace/trace.go
// interesting local operation which may require multiple goroutines // working together. Since tasks can involve multiple goroutines, // they are tracked via a [context.Context] object. [NewTask] creates // a new task and embeds it in the returned [context.Context] object. // Log messages and regions are attached to the task, if any, in the // Context passed to [Log] and [WithRegion]. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 20 00:47:09 UTC 2023 - 5.1K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/internal/initialization/loadercache/ClassLoadersCachingIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 19 20:09:56 UTC 2022 - 10.6K bytes - Viewed (0) -
src/internal/trace/parser.go
EvGCMarkAssistStart = 43 // GC mark assist start [timestamp, stack] EvGCMarkAssistDone = 44 // GC mark assist done [timestamp] EvUserTaskCreate = 45 // trace.NewTask [timestamp, internal task id, internal parent id, name string, stack] EvUserTaskEnd = 46 // end of task [timestamp, internal task id, stack]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:31:04 UTC 2024 - 4.7K bytes - Viewed (0)