Skip to content

Commit

Permalink
mj -> uj
Browse files Browse the repository at this point in the history
  • Loading branch information
bensong04 committed Feb 3, 2024
1 parent e1185d5 commit 4525251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<p align="center"><img style="float: right; width: 120px;" src="https://i.imgur.com/xz7unmY.png"></p>

# firefly
Energy profiler for large distributed systems. Built for tartanhacks24!

Built for TartanHacks 2024: Amplify!

Amplify your carbon offset with Firefly, an energy profiler for large distributed systems. Firefly samples multiple executions of an executable while recording energy usage through Intel RAPL. Along with displaying the entire stack trace of the program, it displays and disassembles the most energy-consuming functions so that the user can have some insight on how to optimize them to run more efficiently.

To run the Firefly profiler and generate the associated JSON:
```
Expand Down
2 changes: 1 addition & 1 deletion ui-beta/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ int main() {

json::jobject result = json::jobject::parse(fileContent);
uint64_t total_mj_usage = (long) result["energy"];
double total_j_usage = total_mj_usage / 1000;
double total_j_usage = total_mj_usage / A_MILLION;
double kgCO2 = total_j_usage * JOULE_TO_CO2;
double dollarTrees = total_j_usage * JOULE_TO_TREE_COST;
double eiffelDays = total_j_usage * JOULE_TO_EIFFEL_DAYS;
Expand Down

0 comments on commit 4525251

Please sign in to comment.