Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eco ci run stats #419

Merged
merged 8 commits into from
Aug 15, 2023
Merged

Eco ci run stats #419

merged 8 commits into from
Aug 15, 2023

Conversation

dan-mm
Copy link
Contributor

@dan-mm dan-mm commented Aug 11, 2023

Changes:

  • DB/API: CI_Measurements now also takes average cpu util as a field. Since this will break api compatability, I took this opportunity to also rename some of the columns/fields here to be clearer (value/unit -> energy_value, energy_unit)
  • Eco-CI front end: averages table is now a stats table that displays the mean, std. dev, and std. dev % for both Energy and Time. Also displays the Avg. Cpu. utilization
  • stats table will also update when you filter the chart (by cpu), to only display stats for the measurements currently shown in the chart
  • various front end changes to look nicer / more in line with the rest of GMT. Tables are now in UI segments, with a banner.
  • refactor ci.js a bit for clarity/readability -> its changed a lot since its first version and some variable names were just incorrect.

NOTE: This has breaking API changes, so Eco-CI will also need to update at the same time from this PR: green-coding-solutions/eco-ci-energy-estimation#36 / Eco-CI will need a release. Please lets co-ordinate this before merging

@github-actions
Copy link

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run 21.8499 2361.69 3.0395 786
Measurement #1 21.9469 2361.69 3.0395 780

📈 Energy graph:

 
 5.89 ┤                                          ╭╮                       ╭╮                                                                                  ╭───╮                   ╭─────╮    ╭──╮ ╭─╮
 5.47 ┤            ╭╮                           ╭╯│                  ╭╮  ╭╯│                                                                                  │   ╰╮  ╭╮╭──╮          │     ╰─╮  │  ╰─╯ │
 5.04 ┤      ╭╮   ╭╯│                        ╭╮ │ │             ╭╮ ╭─╯│  │ │          ╭─╮      ╭─╮  ╭╮╭╮╭─╮   ╭──╮              ╭╮   ╭─╮           ╭╮        ╭╯    │╭─╯╰╯  ╰╮         │       │ ╭╯      ╰╮       ╭╮  ╭──╮                             ╭╮                     ╭╮          ╭╮          ╭╮          ╭╮                                                                                            ╭╮          ╭╮╭╮         ╭╮              ╭╮                        ╭╮                        ╭╮                                                                                      ╭╮                         ╭╮                                                        ╭╮           ╭╮                                                                                                      ╭
 4.62 ┤      ││╭╮ │ ╰╮╭────────────────╮ ╭─╮╭╯╰─╯ ╰─────────────╯╰─╯  ╰──╯ │ ╭───────╮│ ╰────╮ │ ╰──╯╰╯││ │   │  │╭╮╭─╮ ╭───────╯╰───╯ ╰───────────╯╰────────╯     ││       │         │       ╰╮│        │       ││  │  ╰─╮                          ╭╯│                     ││          ││          ││          ││                                             ╭╮                      ╭╮         ╭╮          ││          ││││         ││           ╭─╮││                      ╭╮││                   ╭╮ ╭╮││                           ╭╮                          ╭─╮                          ╭╮││            ╭╮           ││                     ╭─╮                               ╭╯│           ││   ╭╮           ╭╮                                                    ╭─╮╭╮                      ╭╮ ╭─╯
 4.20 ┤      ││││ │  ╰╯                ╰─╯ ╰╯                              ╰╮│       ││      │╭╯       ││ │   │  ╰╯╰╯ ╰─╯                                          ╰╯       │╭╮      ╭╯        ╰╯        │      ╭╯│ ╭╯    │          ╭╮╭╮            │ │         ╭╮          ││          │╰╮         │╰╮         │╰╮         ╭╮          ╭╮         ╭─╮         │╰╮         ╭╮          ││         ││          ││          │╰╯│         ││        ╭╮ │ │││         ╭╮           ││││                   ││ │╰╯│            ╭╮            ╭╯╰╮          ╭╮             │ ╰╮                         │╰╯│         ╭─╮││        ╭╮ │╰╮                    │ │                               │ ╰╮          ││ ╭╮││           ││          ╭─╮            ╭╮          ╭╮            ╭╯ ││╰╮                     ││ │
 3.78 ┤      ││││╭╯                                                         ││       ╰╯      ╰╯        ╰╯ │   │                                                             │││      │                   │      │ ╰╮│     │        ╭╮││││        ╭╮ ╭╯ │         │╰╮         │╰╮         │ │         │ │         │ │         │╰╮         ││         │ │         │ │         ││          ││         ││          ││          │  │         ││        ││ │ │││         ││        ╭╮ ││││         ╭╮        ││ │  │          ╭╮││        ╭╮ ╭╯  │         ╭╯│         ╭╮ ╭╯  │         ╭──╮         ╭╮ │  │         │ │││        ││ │ ╰╮        ╭╮         │ │                               │  │         ╭╯╰╮││││           │╰╮         │ │            ││          │╰─╮          │  ╰╯ │         ╭──╮        ││ │
 3.36 ┤    ╭╮│╰╯╰╯                                                          ││                            ╰──╮│                                                             ╰╯│     ╭╯                   │      │  ╰╯     ╰╮       │╰╯╰╯╰╮       │╰╮│  ╰╮        │ │        ╭╯ │         │ │         │ │         │ ╰╮        │ │         │╰╮        │ │         │ ╰╮        │╰╮         ││         │╰╮        ╭╯╰╮        ╭╯  │         ││        ││ │ ╰╯│         ││       ╭╯│╭╯╰╯╰╮        ││        ││ │  ╰╮       ╭─╯╰╯╰╮       │╰╮│   │       ╭╮│ │╭╮       │╰╮│   │       ╭─╯  ╰╮       ╭╯│╭╯  │        ╭╯ │││        ││ │  │        ││         │ ╰╮        ╭─╮        ╭╮         │  ╰╮       ╭╯  ╰╯│││        ╭╮╭╯ │       ╭╮│ │╭╮         ╭╯╰╮       ╭─╯  │        ╭╮│     │       ╭─╯  │        ││ │
 2.93 ┤    │╰╯                                                              ╰╯                               ││                                                               │╭─╮  │                    │      │          │    ╭╮ │     │       │ ││   │        │ │        │  │        ╭╯ │         │ ╰╮        │  │        │ │        ╭╯ │        │ ╰╮        │  │        │ │        ╭╯│         │ │        │  │        │   │         │╰╮       │╰╮│   │         ││       │ ││    │        ││       ╭╯│ │   │       │     │       │ ││   │       │╰╯ ╰╯│       │ ││   │       │     │       │ ││   │        │  ╰╯│       ╭╯│ │  │        ││         │  │        │ │        │╰╮        │   │       │     ╰╯╰╮       │││  │       │╰╯ ╰╯│       ╭╮│  │       │    │        │││     │       │    │        │╰╮│
 2.51 ┤    │                                                                                                 ││                                                               ╰╯ │  │                    │   ╭╮ │          │    ││ │     │       │ ││   │        │ │        │  │        │  │         │  │        │  │        │ │        │  │        │  │        │  │        │ │        │ ╰╮        │ │        │  │        │   │         │ │       │ ││   │         ││       │ ││    │        ││       │ │ │   │       │     │       │ ││   │       │     │    ╭╮ │ ││   │       │     │       │ ││   │       ╭╯    │       │ │╭╯  │        │╰╮        │  │        │ │╭╮      │ │        │   │       │        │       │││  │       │     │       │││  │       │    ╰╮       │││     │       │    ╰╮       │ ││
 2.09 ┤╭╮  │                                                                                                 ╰╯                                                                  │╭╮│                    │   ││ │          ╰╮   │╰╮│     │     ╭╮│ ││   │╭╮ ╭╮  ╭╯ ╰╮      ╭╯  │╭╮╭╮╭╮╭─╯  │  ╭╮╭╮   │  │  ╭╮ ╭╮╭╯  │   ╭╮  ╭╯ │  ╭╮   ╭╯  │ ╭╮    ╭╯  │ ╭╮ ╭╮  │  │  ╭╮   ╭╯ ╰─╮ ╭╮  ╭╯  ╰╮  ╭╮╭╮╭╯ │     ╭╮╭╯  │╭╮    ╭─╯   ╰╮ ╭╮╭╮ ╭─╯ ╰╮    ╭╮│ ││   │  ╭╮     │╰╮   ╭╮ │ ││    ╰╮╭╮╭╮  ╭╯│╭╮     │ │╭╯   │       │     │ ╭╮    │ ││   ╰╮╭╮ ╭╮ │     │ ╭──╯│ │ ╰╯   ╰╮     ╭╯     │   ╭╮  │ ││   │╭╮    ╭╯     │╭╮ ╭╮ ╭╯ ││   │  ╭╮   ╭╯ │╭╮ ╭╮  ╭╯  │   ╭╮╭╮╭╯ │││ ╭╮  ╭╯ │   ╭╮  ╭╯   │╭╮ ╭╮  │        │      ╭╯││  │   ╭─╮ │     │      ╭╯╰╯  │      ╭╯     ╰─╮╭╮   │││     │  ╭╮  ╭╯     │  ╭╮   │ ╰╯
 1.67 ┼╯╰──╯                                                                                                                                                                     ╰╯╰╯                    ╰───╯╰─╯           ╰───╯ ╰╯     ╰─────╯╰╯ ╰╯   ╰╯╰─╯╰──╯   ╰──────╯   ╰╯╰╯╰╯╰╯    ╰──╯╰╯╰───╯  ╰──╯╰─╯╰╯   ╰───╯╰──╯  ╰──╯╰───╯   ╰─╯╰────╯   ╰─╯╰─╯╰──╯  ╰──╯╰───╯    ╰─╯╰──╯    ╰──╯╰╯╰╯  ╰─────╯╰╯   ╰╯╰────╯      ╰─╯╰╯╰─╯    ╰────╯╰╯ ╰╯   ╰──╯╰─────╯ ╰───╯╰─╯ ╰╯     ╰╯╰╯╰──╯ ╰╯╰─────╯ ╰╯    ╰───────╯     ╰─╯╰────╯ ╰╯    ╰╯╰─╯╰─╯     ╰─╯   ╰─╯       ╰─────╯      ╰───╯╰──╯ ╰╯   ╰╯╰────╯      ╰╯╰─╯╰─╯  ╰╯   ╰──╯╰───╯  ╰╯╰─╯╰──╯   ╰───╯╰╯╰╯  ╰╯╰─╯╰──╯  ╰───╯╰──╯    ╰╯╰─╯╰──╯        ╰──────╯ ╰╯  ╰───╯ ╰─╯     ╰──────╯     ╰──────╯        ╰╯╰───╯╰╯     ╰──╯╰──╯      ╰──╯╰───╯
                                                                                                                                                                                                                                                                                                                                                                                                    Watts over time

@github-actions
Copy link

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run 21.0014 2351.89 3.15266 755
Measurement #1 21.1021 2351.89 3.15266 749

📈 Energy graph:

 
 6.84 ┤                                      ╭╮                   ╭─╮                                                                                            ╭─╮                 ╭──╮    ╭─╮ ╭─╮
 6.35 ┤                                      ││                   │ │                                                                                           ╭╯ │    ╭╮          ╭╯  ╰╮   │ ╰╮│ │
 5.86 ┤                                      ││                   │ │                                           ╭╮     ╭╮                                      ╭╯  ╰╮  ╭╯╰──╮      ╭╯    ╰╮  │  ││ │             ╭╮
 5.37 ┤           ╭╮   ╭╮                ╭╮  │╰╮                 ╭╯ │                          ╭╮         ╭╮   ╭╯│     │╰╮                                     │    ╰╮╭╯    │      │      ╰╮╭╯  ╰╯ │        ╭╮   ││                                                                         ╭╮                                                                                                                                             ╭╮                                                                                                                                   ╭╮
 4.88 ┤     ╭╮ ╭╮╭╯│   │╰╮╭──────╮╭─╮ ╭╮ │╰──╯ ╰─────────────────╯  ╰╮ ╭╮ ╭╮ ╭─╮    ╭╮╭─╮╭─╮╭──╯╰╮╭─╮╭─╮ ╭╯╰╮╭─╯ ╰╮    │ │╭╮   ╭─╮╭────╮╭────╮  ╭────╮╭──╮╭────╯     ││     │      │       ││      ╰╮       ││ ╭─╯╰─╮         ╭╮          ╭╮ ╭╮                                             ││          ╭╮                                            ╭╮                                                       ╭╮╭╮                        ││                                                                            ╭╮         ╭╮              ╭╮                          ││         ╭╮                                                                                  ╭╮                         ╭╮                       ╭╮             ╭╮                          ╭─
 4.39 ┤     │╰─╯││ ╰───╯ ╰╯      ╰╯ ╰─╯╰─╯                           ╰─╯╰─╯╰─╯ ╰────╯╰╯ ╰╯ ╰╯    ╰╯ ╰╯ ╰─╯  ╰╯    │    │ ││╰╮╭─╯ ╰╯    ╰╯    │ ╭╯    ╰╯  ╰╯          ││     │      │       ││       │       ││╭╯    │         ││╭╮        ││ │╰╮         ╭╮          ╭╮         ╭╮          ││          ││                                            ││                     ╭╮                     ╭╮         ││││         ╭╮        ╭╮ ╭╮││                       ╭╮                   ╭╮ ╭╮╭╮                        ╭╯│         ││             ╭╯│         ╭╮          ╭╮ ╭╮││         ││╭╮        ╭╮ ╭─╮                    ╭╮                               ╭─╮         ╭╯╰╮                        ││                       ││            ╭╯│                       ╭╮ │
 3.90 ┤     │   ╰╯                                                                                                ╰╮╭─╮│ ╰╯ ╰╯               ╰─╯                     ││     ╰╮     │       ││       │       │╰╯     │        ╭╯│││        ││ │ │         ││         ╭╯│         │╰╮         ││          ││          ╭╮         ╭╮         ╭╮          ││                     ││         ╭╮         ╭╯│         │╰╯│         ││        ││ │╰╯│                   ╭╮ ╭╯│                   ││ │╰╯│        ╭─╮          ╭╮ │ │         ││          ╭╮ │ │         ││╭╮        ││ │╰╯│        ╭╯│││        ││ │ │                    ││                               │ │         │  │╭╮           ╭╮        ╭╯│            ╭╮        ╭╯│            │ │╭─╮        ╭╮          ││ │
 3.41 ┤    ╭╯                                                                                                      ││ ││                                             ╰╯      ╰─╮  ╭╯       ╰╯       │      ╭╯       │        │ │││        ││ │ │         ││         │ │         │ │         │╰╮         │╰╮        ╭╯│         ││         │╰╮         │╰╮    ╭╮  ╭─╮         ││         ││         │ │         │  │         ││        ││ │  │         ╭╮       ╭╯│╭╯ ╰╮        ╭╮        ││ │  │       ╭╯ ╰─╮       ╭╯│╭╯ ╰╮       ╭╯│╭╮       ╭╯│╭╯ ╰╮       ╭╯╰╯│        ││ │  │        │ │││        ││ │ │         ╭╮        ╭╯╰╮        ╭╮         ╭╮         │ ╰╮       ╭╯  ╰╯│        ╭╮╭╯│        │ │╭╮         ╭╯│ ╭╮     │ │╭╮       ╭╮ │ ││ │       ╭╯╰─╮        ││ │
 2.92 ┤    │                                                                                                       ╰╯ ╰╯                                                       ╰╮ │                 │      │        │        │ │││       ╭╯│ │ │         │╰╮        │ ╰╮        │ │         │ │        ╭╯ │╭╮      │ │        ╭╯╰╮        │ │        ╭╯ │    ││  │ │        ╭╯│         │╰╮        │ ╰╮        │  │         ││       ╭╯│ │  │         ││       │ ││   │        ││        ││ │  │       │    │       │ ││   │       │ ╰╯│       │ ││   │       │   ╰╮       │╰╮│  │        │ │││       ╭╯│ │ │        ╭╯│        │  │        │╰╮        │╰╮        │  │       │     ╰╮       │││ ╰╮       │ │││       ╭╮│ │ ││     │ │││       ││╭╯ ╰╯ │       │   ╰─╮     ╭╯│ │
 2.43 ┤    │                                                                                                                                                                    │╭╯                 │ ╭╮   │        ╰╮       │ ╰╯│  ╭╮   │ │ │ ╰╮       ╭╯ │        │  │        │ ╰─╮  ╭╮   │ │       ╭╯  ╰╯│      │ │       ╭╯  │        │ │        │  │    ││  │ │       ╭╯ ╰╮        │ │        │  │╭╮      │  │ ╭╮    ╭─╯│       │ │╭╯  │  ╭╮    ╭╯│       │ ╰╯   │       ╭╯│  ╭╮╭╮ ╭╯│ │  │       │    │       │ ││   │       │   │       │ ││   │   ╭╮  │    ╰╮      │ ││  ╰╮   ╭╮  │ ╰╯│       │ │╭╯ ╰╮    ╭╮ │ │       ╭╯  │       ╭╯ │        │ │       ╭╯  │       │      │       │││  │       │ │││╭─╮ ╭╮ │││ │ ││     │ │││   ╭╮  │││     │ ╭╮    │     │     │ │ │
 1.94 ┼────╯                                                                                                                                                                    ╰╯                  ╰─╯╰───╯         ╰───────╯   ╰──╯╰───╯ ╰─╯  ╰───────╯  ╰────────╯  ╰────────╯   ╰──╯╰───╯ ╰───────╯     ╰──────╯ ╰───────╯   ╰────────╯ ╰────────╯  ╰────╯╰──╯ ╰───────╯   ╰────────╯ ╰────────╯  ╰╯╰──────╯  ╰─╯╰────╯  ╰───────╯ ╰╯   ╰──╯╰────╯ ╰───────╯      ╰───────╯ ╰──╯╰╯╰─╯ ╰─╯  ╰───────╯    ╰───────╯ ╰╯   ╰───────╯   ╰───────╯ ╰╯   ╰───╯╰──╯     ╰──────╯ ╰╯   ╰───╯╰──╯   ╰───────╯ ╰╯   ╰────╯╰─╯ ╰───────╯   ╰───────╯  ╰────────╯ ╰───────╯   ╰───────╯      ╰───────╯╰╯  ╰───────╯ ╰╯╰╯ ╰─╯╰─╯╰╯ ╰─╯╰─────╯ ╰╯╰───╯╰──╯╰╯     ╰─╯╰────╯     ╰─────╯ ╰─╯
                                                                                                                                                                                                                                                                                                                                                                                    Watts over time

@ArneTR ArneTR merged commit a3a132e into main Aug 15, 2023
@ArneTR ArneTR deleted the eco-ci-run-stats branch August 15, 2023 13:10
ArneTR added a commit that referenced this pull request Aug 15, 2023
* main:
  Eco ci run stats (#419)
  Bump fastapi from 0.101.0 to 0.101.1 (#425)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants