public IEnumerable <AppMetric> CollectMetrics() { return(AppMetricsCollection.JoinCollectMetrics(mTaskBuffer, mTaskPoller, mTaskQueueConsumer, mTaskResultQueue, mExecutionPerfMon, AppMetricsCollection.JoinProviders(mWorkers))); }
private async Task CollectMetricsAsync() { IEnumerable <AppMetric> metrics = AppMetricsCollection .JoinCollectMetrics(mProviders.ToArray()); if (metrics.Count() > 0) { await mWriter.WriteAsync(metrics); } }
public IEnumerable <AppMetric> CollectMetrics() { return(AppMetricsCollection.JoinCollectMetrics(mMetrics, mNotificationListener)); }