测量 Raspberry Pi (Raspbian) 中 python 脚本消耗的能量

ces*_*sec 5 python energy raspberry-pi

我一直在基于 Intel 的计算机上使用 pyRAPL 来测量 Python 编码程序的能量,我想将代码移植到 Raspberry Pi,但我发现 ARM 不提供此 API 的接口。谁能给我指出一些要使用的方向、方法、API?需要测量代码中起点和终点之间的焦耳。谢谢!