- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ShouldRecordPluginMetrics (0.57 sec)
-
pkg/scheduler/framework/cycle_state.go
} // NewCycleState initializes a new CycleState and returns its pointer. func NewCycleState() *CycleState { return &CycleState{} } // ShouldRecordPluginMetrics returns whether metrics.PluginExecutionDuration metrics should be recorded. func (c *CycleState) ShouldRecordPluginMetrics() bool { if c == nil { return false } return c.recordPluginMetrics }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 06:48:20 UTC 2023 - 4K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/framework.go
} func (f *frameworkImpl) runPreFilterPlugin(ctx context.Context, pl framework.PreFilterPlugin, state *framework.CycleState, pod *v1.Pod) (*framework.PreFilterResult, *framework.Status) { if !state.ShouldRecordPluginMetrics() { return pl.PreFilter(ctx, state, pod) } startTime := time.Now() result, status := pl.PreFilter(ctx, state, pod)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 60.9K bytes - Viewed (0)