Measuring power consumption of a circuit using an Arduino

A possible solution is to use a INA226 Current sensing I2C module.
They are pretty cheap and give high side current measurement.
Library for an INA226.