Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m-azra3l/powermeasurement
Power consumption measurement application using dotnet 7
https://github.com/m-azra3l/powermeasurement
Last synced: 25 days ago
JSON representation
Power consumption measurement application using dotnet 7
- Host: GitHub
- URL: https://github.com/m-azra3l/powermeasurement
- Owner: m-azra3l
- License: gpl-3.0
- Created: 2023-01-31T22:44:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T22:47:59.000Z (almost 2 years ago)
- Last Synced: 2024-11-08T23:33:02.339Z (3 months ago)
- Language: C#
- Size: 746 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Power Consumption Measurement Application
This application is a tool to measure the specific power consumption of a single application on the computer. It allows the user to select an application from a list of all running processes on the system, displays the power consumption in a graph and the average power consumption per hour.## Dependencies
This application requires the following dependencies to be installed:.NET 7
WinForms.DataVisualization## How to use
Open the application and select the process you want to measure the power consumption from the dropdown list.
The application will start measuring the power consumption and the graph and average consumption textbox will refresh with the new data and points every second.
## How it works
The application uses the Windows Forms UI framework to display a form with a ComboBox that allows the user to select a process from a list of all running processes on the system, a Chart control that displays the power consumption of the selected process in a line graph and a Textbox that displays the average power consumption per hour.The application uses the PerformanceCounter class to measure the private working set memory usage of the selected process. It is a good approximation of the power consumption of that process.
It will call the NextValue method to get the latest data point and add it to the graph.
## Limitations
It is important to note that the private working set memory usage is not an exact measure of power consumption, but it is an approximation of it.It's also worth mentioning that the power usage may fluctuate due to various factors. Therefore, the measurement may not be 100% accurate.
Additionally, this application doesn't support background applications and power usage from these applications is not included.