What is the best way to measure robots energy consumption?

Should I use external device to measure, or try to get it via signals.. ?

External Device in my opinion.