How rapabru/ram-mannager works
RAM Manager is a local Windows desktop tool for observing physical memory, investigating processes and memory growth, and performing explicit NT memory-manager cleanup operations. Its central workflow is MainViewModel refresh and navigation: it gathers system and process measurements, records leak-tracking samples, presents analysis and recommendations, and dispatches user-selected operations whose results are audited and surfaced as notifications. The README documents additional graph, floating-monitor, tray, diagnostics, history, and appearance capabilities. Some feature wiring is inferred from documented behavior because those implementations were not sampled.
Main entry points: MainViewModel.cs Main coordinator · MemoryOperationService.cs Operation dispatcher · MemoryService.cs Memory statistics · MainWindow.xaml.cs Main window
Components 26
Desktop interface
- Main window
RAMManager/Views/MainWindow.xaml.cs - Main coordinator
RAMManager/ViewModels/MainViewModel.cs - Overview
RAMManager/ViewModels/OverviewViewModel.cs - Cleanup screen
RAMManager/ViewModels/CleanupViewModel.cs - Process screen
RAMManager/ViewModels/ProcessesViewModel.cs - Diagnostics screen
RAMManager/ViewModels/DiagnosticsViewModel.cs - History screen
RAMManager/ViewModels/HistoryViewModel.cs - Memory graph
RAMManager/ViewModels/MemoryGraphViewModel.cs - Leak investigator
RAMManager/ViewModels/LeakTrackerViewModel.cs - Floating monitor
RAMManager/Views/FloatingWidgetWindow.xaml.cs
Monitoring and analysis
- Memory statistics
RAMManager/Services/MemoryService.cs - Process analysis
RAMManager/Services/ProcessService.cs - Recommendations
RAMManager/Services/RecommendationEngine.cs - Growth sampling
RAMManager/Services/LeakTrackerService.cs - Hardware details
RAMManager/Services/HardwareInfoService.cs - Trend chart
RAMManager/Controls/MemoryTrendChart.xaml.cs
Memory operations
- Operation dispatcher
RAMManager/Services/MemoryOperationService.cs - Windows memory APIs
RAMManager/Native/NativeMethods.cs - Privilege handling
RAMManager/Native/PrivilegeManager.cs
State and integrations
- Audit history
RAMManager/Services/HistoryService.cs - User preferences
RAMManager/Services/SettingsService.cs - Theme service
RAMManager/Services/ThemeService.cs - System tray
RAMManager/Native/TrayIconManager.cs
Other components
- User
- Windows WMI
- Windows system
Connections 36
- User → Main window: uses
- Main window → Main coordinator: presents
- Main coordinator → Memory statistics: refreshes
- Main coordinator → Process analysis: queries
- Main coordinator → Growth sampling: records samples
- Main coordinator → Recommendations: requests guidance
- Main coordinator → Operation dispatcher: dispatches operations
- Main coordinator → User preferences: reads preferences
- Main coordinator → Theme service: applies theme
- Main coordinator → Overview: updates
- Main coordinator → Cleanup screen: updates
- Main coordinator → Process screen: updates
- Main coordinator → Diagnostics screen: updates
- Main coordinator → History screen: updates
- Main coordinator → Memory graph: updates
- Main coordinator → Leak investigator: updates
- Main coordinator → Floating monitor: exposes live data
- Main coordinator → System tray: provides quick actions
- Cleanup screen → Operation dispatcher: requests cleanup
- Memory statistics → Windows system: queries memory counters
- Process analysis → Windows system: enumerates processes
- Recommendations → Memory statistics: evaluates snapshot
- Growth sampling → Memory statistics: stores measurements
- Memory graph → Hardware details: loads hardware details
- Memory graph → Trend chart: displays samples
- Hardware details → Windows WMI: queries module data
- Operation dispatcher → Memory statistics: captures snapshots
- Operation dispatcher → Audit history: records result
- Operation dispatcher → Windows memory APIs: issues NT commands
- Operation dispatcher → Privilege handling: checks elevation
- Windows memory APIs → Windows system: invokes system APIs
- Privilege handling → Windows system: adjusts privileges
- History screen → Audit history: reads audit log
- User preferences → Theme service: supplies saved choice
- Theme service → Main window: updates appearance
- System tray → Main window: signals tray actions