Skip to content

CodeGreen Demo

Demo

Watch CodeGreen in action: A complete walkthrough from installation to detailed energy analysis.

Walkthrough

1. Automated Installation

Installation Installing CodeGreen via the automated installer script which handles dependencies and C++ compilation.

2. Comprehensive Help

Help Menu Exploring available commands and options through the built-in help system.

3. Hardware Sensor Initialization

Initialize Sensors Detecting and initializing hardware sensors (RAPL, NVML) with proper system permissions.

4. Version Verification

Version Info Checking the installed version of CodeGreen.

5. System & Sensor Information

System Info Displaying detailed information about the installation, hardware, and available energy providers.

6. Workload Benchmarking

Benchmark Running built-in synthetic workloads to verify sensor precision and system overhead.

7. Static Code Analysis

Code Analysis Statically analyzing source code to identify function boundaries and instrumentation points using Tree-sitter.

8. Fine-Grained Energy Measurement

Energy Measurement Executing and measuring real-time energy consumption with function-level attribution.

9. Configuration Management

Configuration Viewing and managing global configuration settings for measurement precision and sensor domains.

10. System Diagnostics

Doctor Running the CodeGreen Doctor to diagnose and fix potential configuration or dependency issues.