- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for recordLocks (1.22 sec)
-
subprojects/core/src/test/groovy/org/gradle/execution/plan/AbstractExecutionPlanSpec.groovy
protected Set<ProjectInternal> getLockedProjects() { return locks.findAll { it.locked }.collect { it.project } as Set } protected void recordLocks(Closure cl) { acquired.clear() cl() acquired.clear() } protected ProjectInternal project(ProjectInternal parent = null, String name = "root") {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 24 11:56:02 UTC 2023 - 7.3K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/execution/plan/DefaultExecutionPlanParallelTest.groovy
WorkSource.Selection selection assert !finalizedPlan.allExecutionComplete() assert finalizedPlan.executionState() == WorkSource.State.MaybeWorkReadyToStart recordLocks { selection = finalizedPlan.selectNext() } assert !selection.noMoreWorkToStart && !selection.noWorkReadyToStart assert !finalizedPlan.allExecutionComplete()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 05 22:18:26 UTC 2024 - 93.5K bytes - Viewed (0) -
pkg/monitoring/base.go
func (f baseMetric) Increment() { f.rest.Record(1) } func (f baseMetric) Decrement() { f.rest.Record(-1) } func (f baseMetric) runRecordHook(value float64) { recordHookMutex.RLock() if rh, ok := recordHooks[f.name]; ok { lv := slices.Map(f.attrs, func(e attribute.KeyValue) LabelValue { return LabelValue{e} }) rh.OnRecord(f.name, lv, value) } recordHookMutex.RUnlock() }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 1.7K bytes - Viewed (0) -
pkg/monitoring/monitoring.go
OnRecord(name string, tags []LabelValue, value float64) } var ( recordHooks = map[string]RecordHook{} recordHookMutex sync.RWMutex ) // RegisterRecordHook adds a RecordHook for a given measure. func RegisterRecordHook(name string, h RecordHook) { recordHookMutex.Lock() defer recordHookMutex.Unlock() recordHooks[name] = h } // NewSum creates a new Sum Metric (the values will be cumulative).
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 24 03:31:28 UTC 2023 - 9.5K bytes - Viewed (0) -
src/runtime/mprof.go
if lt.timeStart != 0 { nowTime := nanotime() gp.m.mLockProfile.waitTime.Add((nowTime - lt.timeStart) * lt.timeRate) } if lt.tickStart != 0 { nowTick := cputicks() gp.m.mLockProfile.recordLock(nowTick-lt.tickStart, lt.lock) } } type mLockProfile struct { waitTime atomic.Int64 // total nanoseconds spent waiting in runtime.lockWithRank
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 53.3K bytes - Viewed (0)