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

Phase Stats Providers #629

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Phase Stats Providers #629

wants to merge 1 commit into from

Conversation

ArneTR
Copy link
Member

@ArneTR ArneTR commented Dec 26, 2023

This PR refactors the phase_stats to use a plug-in mechanism.

Concept:

  • A new class is created in config.yml: Phase Stats Provider

  • This can then define an input that it swallows

  • and an output that it emits.

  • The provider will then take the input and aggregate it and create an average value

  • It needs a name as output

  • And the provider can also multiply by a fixed value

  • The system gets one or more inputs

    • It can then aggregate these itself, or spit out something per value again

Translated with DeepL.com (free version)

Note: This PR is a draft and might not come into action in this form. It is public only to track and save progress on Github

Copy link

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run 9.92829 1781.96 2.51334 716
Measurement #1 9.9961 1781.96 2.51334 711

📈 Energy graph:

 
 7.78 ┤                                                  ╭╮                   ╭╮
 7.18 ┤                                                  ││                   ││
 6.57 ┤                                                  ││              ╭╮   ││
 5.97 ┤                                                  ││              ││   ││╭╮
 5.37 ┤                                                 ╭╯╰╮            ╭╯╰─╮ │╰╯│
 4.77 ┤             ╭─╮    ╭╮                           │  ╰╮╭─╮╭╮     ╭╯   │ │  ╰╮
 4.17 ┤            ╭╯ ╰╮   │╰─╮ ╭─╮    ╭─╮   ╭╮╭╮       │   ╰╯ ╰╯╰╮    │    ╰─╯   │        ╭╮  ╭╮ ╭╮                              ╭╮  ╭╮                                 ╭╮                                            ╭╮   ╭────╮                           ╭╮                           ╭╮                       ╭╮             ╭╮                                                     ╭╮                         ╭╮                             ╭╮                            ╭╮                            ╭╮                                                                                              ╭╮                                                                                        ╭╮ ╭╮                            ╭
 3.57 ┤     ╭╮ ╭╮  │   ╰──╮│  ╰─╯ ╰──╮╭╯ ╰───╯││╰╮    ╭╮│         ╰╮   │          │       ╭╯│╭╮││╭╯╰─╮         ╭─╮         ╭╮ ╭─╮╭╯╰╮╭╯│╭──╮╭──╮╭╮         ╭───╮         ││╭─╮         ╭╮╭╮         ╭╮╭─╮         ╭╮╭╮ │╰╮╭─╯    ╰───╮╭─╮╭╮╭─╮╭─╮╭─╮         ││╭─╮         ╭──╮         ╭╮││         ╭╮╭─╮         ││╭─╮        ╭─╯╰─╮         ╭╮        ╭╮ ╭────╮                  ╭╮ ╭─╯│╭╮                   ╭╮ ╭╯│╭─╮            ╭╮        ╭╮ ╭╯│╭─╮         ╭╮          ╭╮ ╭╯╰─╮          ╭╮╭╮        ╭╮ ╭╯│╭╮          ╭╮╭╮        ╭╮ ╭╮╭─╮          ╭─╮         ╭╮╭─╮          ╭─╮          ╭─╮         ││╭─╮          ╭╮ ╭╮╭╮          ╭╮╭─╮          ╭╮           ╭╮╭─╮         ╭─╮           ╭─╯╰─╯╰─╮          ╭╮          ╭╮╭─╯
 2.97 ┤     ││ │╰─╮│      ╰╯         ││       ╰╯ │╭╮ ╭╯││          │   │          │       │ ││││││   │         │ │         ││ │ ╰╯  ││ ││  ││  ││╰╮        │   │         │││ │         │╰╯│         │││ │         │││╰╮│ ││          ││ ││││ ││ ││ │         │││ │         │  │         │││╰╮        │││ │         │││ │        │    │         ││        ││ │    │         ╭╮       │╰╮│  ││╰╮        ╭╮        ││ │ ││ │         ╭─╮││        ││ │ ││ │         │╰─╮        ││ │   │          ││││        ││╭╯ ╰╯╰╮         │╰╯│        ││ │││ │          │ │         │││ │          │ │          │ │         │╰╯ │          ││ ││││          │││ │         ╭╯│           │││ │         │ ╰╮          │       ╰╮         ││╭╮       ╭╯││
 2.37 ┤    ╭╯│ │  ╰╯                 ││          ╰╯╰╮│ ╰╯          │   │          │       │ ││││││   │       ╭╮│ ╰─╮       │╰╮│     ╰╯ ╰╯  ╰╯  ╰╯ │        │   │         │╰╯ │         │  ╰╮        │╰╯ │        ╭╯╰╯ ││ ╰╯          ╰╯ ││╰╯ ╰╯ ╰╯ │         │╰╯ │         │  │         │╰╯ │        │╰╯ │         │╰╯ │        │    │         ││        ││ │    │         ││       │ ││  ╰╯ │        ││        ││ │ ╰╯ │       ╭╮│ ╰╯│        ││ │ ╰╯ │       ╭╮│  │       ╭╯│╭╯   │        ╭─╯│││       ╭╯││     │       ╭╮│  │        ││ │╰╯ │         ╭╯ │        ╭╯╰╯ │         ╭╯ │         ╭╯ │        ╭╯   │        ╭─╯│╭╯│││       ╭╮ │╰╯ │         │ ╰╮          │╰╯ │       ╭╮│  │          │        │       ╭╮│╰╯│       │ ││
 1.77 ┼────╯ ╰─╯                     ╰╯             ╰╯             ╰───╯          ╰───────╯ ╰╯╰╯╰╯   ╰───────╯╰╯   ╰───────╯ ╰╯                   ╰────────╯   ╰─────────╯   ╰─────────╯   ╰────────╯   ╰────────╯    ╰╯                ╰╯         ╰─────────╯   ╰─────────╯  ╰─────────╯   ╰────────╯   ╰─────────╯   ╰────────╯    ╰─────────╯╰────────╯╰─╯    ╰─────────╯╰───────╯ ╰╯     ╰────────╯╰────────╯╰─╯    ╰───────╯╰╯   ╰────────╯╰─╯    ╰───────╯╰╯  ╰───────╯ ╰╯    ╰────────╯  ╰╯╰───────╯ ╰╯     ╰───────╯╰╯  ╰────────╯╰─╯   ╰─────────╯  ╰────────╯    ╰─────────╯  ╰─────────╯  ╰────────╯    ╰────────╯  ╰╯ ╰╯╰───────╯╰─╯   ╰─────────╯  ╰──────────╯   ╰───────╯╰╯  ╰──────────╯        ╰───────╯╰╯  ╰───────╯ ╰╯
                                                                                                                                                                                                                                                                                                                                                                  Watts over time

@ribalba
Copy link
Member

ribalba commented Dec 31, 2023

Translated with DeepL.com (free version)

?

@ArneTR
Copy link
Member Author

ArneTR commented Jan 1, 2024

Translated with DeepL.com (free version)

?

If you hate deepl.com let me know :)

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