Commit graph

10 commits

Author SHA1 Message Date
22cbc1d019 style: apply cargo fmt
Formatted Rust code to pass CI style checks.
2025-12-18 13:18:54 +08:00
b9b2b7aced refactor: remove legacy Python code and optimize Rust implementation
Removed all Python source files and build configuration. Refactored Rust code to remove unused modules (exporter) and fields. Updated README to man-page format.
2025-12-18 13:12:10 +08:00
8b68b1ba9b feat: Complete main application and documentation
- Implement main.rs with clap CLI argument parsing
- Add --continuous flag for continuous monitoring mode
- Add --interval flag for configurable update intervals
- Add --config flag for custom config file paths
- Initialize env_logger for debug logging
- Create comprehensive .gitignore for Rust and Python
- Write README-rust.md with usage instructions
- Handle config loading with fallback to defaults
- Support graceful Ctrl+C interruption in continuous mode
2025-12-08 09:30:00 +08:00
c6ffadc724 feat: Add temperature monitoring and data export
- Implement TemperatureMonitor (platform-specific)
- Create DataExporter for JSON/CSV export functionality
- Add export_to_json() for JSON format output
- Add export_to_csv() for CSV format output
- Auto-generate timestamped filenames
- Create exports directory automatically
- Integrate temperature monitor into SystemMonitor
- Add temperature display to stats output
2025-12-06 14:00:00 +08:00
4d87dccf62 feat: Add alert system with threshold monitoring
- Create AlertSystem for configurable threshold checks
- Define Alert struct for alert history tracking
- Implement check_cpu_alert() for CPU threshold violations
- Implement check_memory_alert() for memory threshold violations
- Implement check_disk_alert() for disk threshold violations
- Add trigger_alert() to record and display alerts
- Maintain alert history for later analysis
- Integrate alert system into SystemMonitor
- Add visual alert indicators with ⚠️  emoji
2025-12-05 10:00:00 +08:00
3af5a6182e feat: Implement core system monitoring functionality
- Create SystemMonitor as main monitoring orchestrator
- Implement CPU usage tracking with accurate sampling
- Implement memory info collection (total, used, available, percent)
- Implement disk usage across all mounted disks
- Implement network statistics (bytes sent/received, packets)
- Add display_stats() for formatted output
- Define data structures: MemoryInfo, DiskInfo, NetworkStats
- Integrate with logger for metric recording
- Use sysinfo's System, Disks, and Networks APIs
2025-12-03 16:30:00 +08:00
32ecbd8aff feat: Implement process monitoring module
- Create ProcessMonitor using sysinfo System
- Define ProcessInfo struct for process data
- Implement get_top_processes() to find high CPU processes
- Calculate CPU and memory usage percentages
- Sort processes by CPU usage (descending)
- Implement get_process_count() for total process count
- Add display_processes() for formatted console output
- Replicate Python version's process monitoring functionality
2025-12-01 11:00:00 +08:00
0dd5ecc441 feat: Implement logging system
- Create TrackerLogger for file-based logging
- Auto-create logs directory if not exists
- Generate daily log files with timestamp format
- Support different log levels (INFO, WARNING, ERROR)
- Implement log_stats() for metric logging
- Implement log_alert() for alert logging
- Implement log_error() for error logging
- Maintain compatibility with Python version's logging format
2025-11-30 15:00:00 +08:00
ee427dddba feat: Implement configuration management module
- Create Config struct with serde support for JSON parsing
- Define DisplayConfig for UI toggle options
- Define AlertThresholds for monitoring alerts
- Implement Default trait for sensible defaults
- Add load() method to read config from file
- Support same config format as Python version for compatibility
2025-11-29 10:30:00 +08:00
77355ed667 feat: Initialize Rust project structure
- Set up basic Cargo project with tracker-rs name
- Initialize source directory with main.rs template
- Establish foundation for Rust rewrite of system tracker
2025-11-27 09:00:00 +08:00