Documentation
¶
Overview ¶
Package profile provides performance analysis for GitLab CI/CD pipelines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CriticalPathJob ¶
type CriticalPathJob struct {
Name string `json:"name"`
Stage string `json:"stage"`
EstimatedDuration int `json:"estimated_duration_seconds"`
}
CriticalPathJob represents a job on the critical path.
type ParallelOpportunity ¶
type ParallelOpportunity struct {
Stage string `json:"stage"`
Jobs []string `json:"jobs"`
PotentialSavings int `json:"potential_savings_seconds"`
}
ParallelOpportunity represents jobs that can run in parallel.
type ProfileResult ¶
type ProfileResult struct {
CriticalPath []CriticalPathJob `json:"critical_path"`
TotalDuration int `json:"total_duration_seconds"`
CriticalPathDuration int `json:"critical_path_duration_seconds"`
ParallelismEfficiency float64 `json:"parallelism_efficiency"`
ParallelOpportunities []ParallelOpportunity `json:"parallel_opportunities"`
Recommendations []Recommendation `json:"recommendations"`
JobCount int `json:"job_count"`
StageCount int `json:"stage_count"`
}
ProfileResult contains the complete performance analysis results.
func Analyze ¶
func Analyze(path string) (*ProfileResult, error)
Analyze performs performance analysis on the pipeline at the given path.
type Recommendation ¶
type Recommendation struct {
Type string `json:"type"`
Description string `json:"description"`
Impact string `json:"impact"`
}
Recommendation represents an optimization recommendation.
Click to show internal directories.
Click to hide internal directories.