Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ShouldRecordPluginMetrics (0.57 sec)

  1. 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)
  2. 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)
Back to top