Module PerformanceStatsCommand

Module PerformanceStatsCommand 

Source
Expand description

§PerformanceStatsCommand

Retrieves application performance statistics.

§RESPONSIBILITIES

§Performance Monitoring

  • Get performance metrics
  • Report CPU/memory usage
  • Return operational statistics

§ARCHITECTURAL ROLE

§Position in Mountain

  • IPC wrapper command in Binary subsystem
  • Performance monitoring endpoint

§Dependencies

  • crate::IPC::AdvancedFeatures: Performance tracking
  • tauri: IPC framework
  • serde_json: JSON serialization

§Dependents

  • Wind frontend: Queries performance stats
  • DevTools: Performance monitoring

§SECURITY

§Considerations

  • Stats are read-only, no security impact
  • Avoid exposing sensitive paths in stats

§PERFORMANCE

§Considerations

  • Stats collection should be lightweight
  • Sampling rate affects accuracy vs overhead

Functions§

MountainGetPerformanceStats
Get performance stats.