Skip to content

Commit

Permalink
Scheduling statsCollector for all collectorModes (#82)
Browse files Browse the repository at this point in the history
Signed-off-by: Atharva Sharma <[email protected]>
  • Loading branch information
atharvasharma61 authored Jun 20, 2024
1 parent fa85b6f commit 5c62832
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ public void run() {
}

private boolean canSchedule(PerformanceAnalyzerMetricsCollector collector) {
// Scheduling statsCollector to collect statMetrics irrespective of CollectorMode
if (collector instanceof StatsCollector) {
return true;
}
if (collector instanceof TelemetryCollector) {
return (collectorsSetting == Util.CollectorMode.DUAL.getValue())
|| (collectorsSetting == Util.CollectorMode.TELEMETRY.getValue());
Expand Down

0 comments on commit 5c62832

Please sign in to comment.