MCPcopy Create free account
hub / github.com/github/gh-aw / launchMetricsAnalysis

Function launchMetricsAnalysis

pkg/cli/audit.go:647–659  ·  view source on GitHub ↗
(wg *sync.WaitGroup, results *auditAnalysisResults, runOutputDir string, verbose bool, workflowPath string)

Source from the content-addressed store, hash-verified

645}
646
647func launchMetricsAnalysis(wg *sync.WaitGroup, results *auditAnalysisResults, runOutputDir string, verbose bool, workflowPath string) {
648 wg.Go(func() {
649 metrics, err := extractLogMetrics(runOutputDir, verbose, workflowPath)
650 if err != nil {
651 if verbose {
652 fmt.Fprintln(os.Stderr, console.FormatWarningMessage(fmt.Sprintf("Failed to extract metrics: %v", err)))
653 }
654 results.metrics = LogMetrics{}
655 return
656 }
657 results.metrics = metrics
658 })
659}
660
661func launchJobDetailsAnalysis(wg *sync.WaitGroup, results *auditAnalysisResults, runID int64, verbose bool) {
662 wg.Go(func() {

Callers 1

launchCoreAuditAnalysesFunction · 0.85

Calls 2

FormatWarningMessageFunction · 0.92
extractLogMetricsFunction · 0.85

Tested by

no test coverage detected