CodeGreen Demo¶
Demo¶
Watch CodeGreen in action: A complete walkthrough from installation to detailed energy analysis.
Walkthrough¶
1. Automated Installation¶
Installing CodeGreen via the automated installer script which handles dependencies and C++ compilation.
2. Comprehensive Help¶
Exploring available commands and options through the built-in help system.
3. Hardware Sensor Initialization¶
Detecting and initializing hardware sensors (RAPL, NVML) with proper system permissions.
4. Version Verification¶
Checking the installed version of CodeGreen.
5. System & Sensor Information¶
Displaying detailed information about the installation, hardware, and available energy providers.
6. Workload Benchmarking¶
Running built-in synthetic workloads to verify sensor precision and system overhead.
7. Static Code Analysis¶
Statically analyzing source code to identify function boundaries and instrumentation points using Tree-sitter.
8. Fine-Grained Energy Measurement¶
Executing and measuring real-time energy consumption with function-level attribution.
9. Configuration Management¶
Viewing and managing global configuration settings for measurement precision and sensor domains.
10. System Diagnostics¶
Running the CodeGreen Doctor to diagnose and fix potential configuration or dependency issues.