Power consumption per function

Hello,

I searched this subject but found nothing that could help me. I would like to evaluate how much energy my functions (both cpu and gpu) consume from my JTX2 board. However I have I don’t know if that’s possible from inside my own C++ code.
Is it even possible?

Thank you.

Hi Dourado, please refer to section 6.3 from the Jetson TX2 Thermal Design Guide for info and code examples about reading the onboard INA sensors to monitor the current and voltage of CPU/GPU/ect.