forked from chamilad/process-metrics-collector
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Current functionality
Currently tdp-finder.py can be used to find the TDP of the system's CPU and return this result in the following form:
TDP ({tdp_column}) => {tdp_in_w} W
e.g.:
TDP (TDP) => 21.0 W
This provides a human-readable form of the TDP information but it implies potential future parsing of that text when running the metrics_aggregator.py, in favor of automating the flow of treecript metrics extraction.
Proposed extension
tdp_finder.py could be extended with a command line argument that controls whether the output will be in human-readable format or just the value of the TDP. This way, the execution of tdp-finder.py could easily be used in an automated pipeline or even be embedded within the invocation of the metrics_aggregator.py.
For example:
- Assuming that tdp-finder.py can accept an optional argument
-p(for "plain") for which it will only respond with the TDP value, the following snippet can automate the calls for bothtdp-finder.pyandmetrics-aggregator.py:
tdp=$(tdp-finder.py -p metrics/2025_11_05-17_33-2855499/ dataset/intel-cpus.csv)
if [ $? -eq 0 ]; then
metrics-aggregator.py metrics/2025_11_05-17_33-2855499/ charts "$tdp"
fi
Metadata
Metadata
Assignees
Labels
No labels