Versions in this module Expand all Collapse all v0 v0.12.0 Jun 23, 2026 v0.10.0 May 4, 2026 v0.9.0 May 2, 2026 v0.8.1 Feb 18, 2026 v0.8.0 Feb 12, 2026 Changes in this version type ResourceOptimizer + func (ro *ResourceOptimizer) AnalyzeCPU(profile *CPUProfile) []HotPath + func (ro *ResourceOptimizer) AnalyzeConcurrency(patterns *ConcurrencyPatterns) []ConcurrencyIssue v0.7.1 Aug 13, 2025 v0.7.0 Aug 13, 2025 v0.6.2-security-analysis Jul 3, 2025 v0.6.1 Jul 3, 2025 v0.6.0 Jul 3, 2025 v0.5.0 Jun 20, 2025 v0.4.0 Jun 20, 2025 v0.3.0 Jun 20, 2025 v0.2.0 Jun 20, 2025 v0.2.0-stable Jun 20, 2025 v0.1.1 Jun 20, 2025 v0.1.0 Jun 20, 2025 Changes in this version + type Adjustment struct + Impact float64 + NewValue interface{} + OldValue interface{} + Parameter string + Timestamp time.Time + Type string + type AlertManager struct + func NewAlertManager() *AlertManager + type AllocationSite struct + Allocations int64 + Bytes int64 + File string + Function string + Line int + type CPUAnalyzer struct + func NewCPUAnalyzer() *CPUAnalyzer + func (c *CPUAnalyzer) AnalyzeCPU(profile *CPUProfile) []HotPath + type CPUProfile struct + Samples []CPUSample + TopFunctions []FunctionProfile + TotalTime time.Duration + type CPUProfiler struct + func NewCPUProfiler() *CPUProfiler + func (c *CPUProfiler) Profile(duration time.Duration) *CPUProfile + type CPUSample struct + File string + Function string + Line int + Percent float64 + Time time.Duration + type CacheEntry struct + AccessCount int64 + AccessTime time.Time + ExpireTime time.Time + Key string + Size int64 + TTL time.Duration + Value interface{} + type CacheStatistics struct + AverageAge time.Duration + EvictionRate float64 + HitRate float64 + MaxSize int64 + MissRate float64 + Size int64 + type ConcurrencyAnalyzer struct + func NewConcurrencyAnalyzer() *ConcurrencyAnalyzer + func (c *ConcurrencyAnalyzer) AnalyzeConcurrency(patterns *ConcurrencyPatterns) []ConcurrencyIssue + type ConcurrencyIssue struct + Description string + Location string + Severity SeverityLevel + Type string + type ConcurrencyPatterns struct + ActiveWorkers int + BlockedGoroutines int + ContentionPoints []ContentionPoint + DeadlockRisks []DeadlockRisk + GoroutineCount int + type ConcurrencyProfiler struct + func NewConcurrencyProfiler() *ConcurrencyProfiler + func (c *ConcurrencyProfiler) AnalyzePatterns() *ConcurrencyPatterns + type Constraint struct + Type ConstraintType + Value interface{} + type ConstraintType string + const ConstraintMaxCPU + const ConstraintMaxLatency + const ConstraintMaxMemory + const ConstraintMinThroughput + type ContentionPoint struct + AverageWait time.Duration + Lock string + MaxWait time.Duration + Waiters int + type Counter struct + type Dashboard struct + Name string + Refresh time.Duration + Widgets []Widget + type DeadlockRisk struct + Goroutines []string + Locks []string + Risk float64 + type FunctionProfile struct + AverageTime time.Duration + CallCount int64 + Name string + SelfTime time.Duration + TotalTime time.Duration + type GCStatistics struct + LastGC time.Time + NumGC uint32 + PauseAverage time.Duration + PauseTotal time.Duration + type Gauge struct + type Goal struct + Metric string + Priority int + Target float64 + type Histogram struct + type HotPath struct + Function string + Optimizable bool + Percentage float64 + Time time.Duration + Type string + type IOProfiler struct + func NewIOProfiler() *IOProfiler + type LRUList struct + func NewLRUList() *LRUList + func (l *LRUList) Len() int + func (l *LRUList) MoveToFront(entry *CacheEntry) + func (l *LRUList) PushFront(entry *CacheEntry) + func (l *LRUList) Remove(entry *CacheEntry) + func (l *LRUList) RemoveBack() *CacheEntry + type MemoryAnalyzer struct + func NewMemoryAnalyzer() *MemoryAnalyzer + type MemoryOpportunity struct + Description string + Potential int64 + Risk RiskLevel + Type string + type MemoryProfile struct + GCStats GCStatistics + HeapAlloc uint64 + HeapInUse uint64 + HeapObjects uint64 + StackInUse uint64 + TopAllocations []AllocationSite + type MemoryProfiler struct + func NewMemoryProfiler() *MemoryProfiler + func (m *MemoryProfiler) GetTopAllocations(n int) []AllocationSite + type MetricsCollector struct + func NewMetricsCollector() *MetricsCollector + type MetricsRecorder struct + func NewMetricsRecorder() *MetricsRecorder + func (m *MetricsRecorder) RecordMetrics(metrics SystemMetrics) + type Optimization struct + Adjustments []Adjustment + ID string + Metrics OptimizationMetrics + StartTime time.Time + Status OptimizationStatus + Target string + Type OptimizationType + type OptimizationLevel int + const OptimizationAggressive + const OptimizationBalanced + const OptimizationConservative + const OptimizationExtreme + type OptimizationMetrics struct + BeforeMetrics SystemMetrics + CurrentMetrics SystemMetrics + Improvement float64 + ResourceSavings ResourceSavings + type OptimizationStatus string + const OptStatusActive + const OptStatusCompleted + const OptStatusFailed + const OptStatusSuspended + type OptimizationTarget struct + Constraints []Constraint + Goals []Goal + Name string + Type OptimizationType + type OptimizationType string + const OptTypeCPU + const OptTypeCache + const OptTypeConcurrency + const OptTypeLatency + const OptTypeMemory + const OptTypeThroughput + type PerformanceCache struct + func NewPerformanceCache(maxSize int64) *PerformanceCache + func (pc *PerformanceCache) Get(key string) (interface{}, bool) + func (pc *PerformanceCache) GetStatistics() *CacheStatistics + func (pc *PerformanceCache) Set(key string, value interface{}, size int64, ttl time.Duration) + type PerformanceConfig struct + AutoTuning bool + CPUTarget float64 + CacheSize int64 + MaxConcurrency int + MemoryLimit int64 + MetricsInterval time.Duration + OptimizationLevel OptimizationLevel + type PerformanceEngine struct + func NewPerformanceEngine(config PerformanceConfig) *PerformanceEngine + func (pe *PerformanceEngine) StartOptimization(ctx context.Context, target OptimizationTarget) (*Optimization, error) + type PerformanceMetrics struct + AverageCPUUsage float64 + AverageMemoryUsage int64 + SuccessfulOptimizations int64 + TotalOptimizations int64 + TotalResourceSavings ResourceSavings + type PerformanceMonitor struct + func NewPerformanceMonitor() *PerformanceMonitor + func (pm *PerformanceMonitor) GetAverageLatency() time.Duration + func (pm *PerformanceMonitor) GetErrorRate() float64 + func (pm *PerformanceMonitor) GetP95Latency() time.Duration + func (pm *PerformanceMonitor) GetP99Latency() time.Duration + func (pm *PerformanceMonitor) GetRequestRate() float64 + func (pm *PerformanceMonitor) RecordMetrics(metrics SystemMetrics) + type PriorityQueue struct + func NewPriorityQueue() *PriorityQueue + func (pq *PriorityQueue) Pop() interface{} + func (pq *PriorityQueue) Push(item interface{}) + type ResourceOptimizer struct + func NewResourceOptimizer(level OptimizationLevel) *ResourceOptimizer + func (ro *ResourceOptimizer) AnalyzeMemory(profile *MemoryProfile) []MemoryOpportunity + func (ro *ResourceOptimizer) FindBottlenecks(paths interface{}) []interface{} + type ResourceSavings struct + CPUSaved float64 + CostReduction float64 + MemorySaved int64 + TimeReduced time.Duration + type RiskLevel int + const RiskHigh + const RiskLow + const RiskMedium + type SeverityLevel int + const SeverityCritical + const SeverityHigh + const SeverityLow + const SeverityMedium + type SystemMetrics struct + AverageLatency time.Duration + CPUUsage float64 + ErrorRate float64 + GoroutineCount int + MemoryUsage int64 + P95Latency time.Duration + P99Latency time.Duration + RequestsPerSecond float64 + Timestamp time.Time + type SystemProfiler struct + func NewSystemProfiler() *SystemProfiler + func (sp *SystemProfiler) ProfileCPU() *CPUProfile + func (sp *SystemProfiler) ProfileConcurrency() *ConcurrencyPatterns + func (sp *SystemProfiler) ProfileMemory() *MemoryProfile + func (sp *SystemProfiler) ProfileRequestPaths() interface{} + func (sp *SystemProfiler) ProfileThroughput() interface{} + type Task struct + EndTime time.Time + Error error + Handler TaskHandler + ID string + Payload interface{} + Priority int + Result interface{} + StartTime time.Time + Status TaskStatus + Timeout time.Duration + Type TaskType + type TaskHandler func(context.Context, interface{}) (interface{}, error) + type TaskScheduler struct + func NewTaskScheduler(maxConcurrency int) *TaskScheduler + func (ts *TaskScheduler) ScheduleTask(task Task) error + type TaskStatus string + const TaskStatusCompleted + const TaskStatusFailed + const TaskStatusPending + const TaskStatusRunning + const TaskStatusTimeout + type TaskType string + const TaskTypeAnalysis + const TaskTypeAttack + const TaskTypeOptimization + const TaskTypeScan + type Widget struct + Config map[string]interface{} + Metric string + Title string + Type WidgetType + type WidgetType string + const WidgetGauge + const WidgetGraph + const WidgetSummary + const WidgetTable + type Worker struct + ID int