Analysis of real-time NPU

Hi khadas team!

I’m currently working on monitoring of NPU load.
We use our software gui application (with ai).
My target - getting percent of npu load in real time while it’s running.
Could you give me same piece of advice how it’s possible to detect NPU load in real time?
As I see inception3 can analyze data during handling of image.

inceptionv3/VIM3# ./run.sh

[ 1] TOTAL_READ_BANDWIDTH (MByte): 69.470709
[ 2] TOTAL_WRITE_BANDWIDTH (MByte): 18.217142
[ 3] AXI_READ_BANDWIDTH (MByte): 33.036594
[ 4] AXI_WRITE_BANDWIDTH (MByte): 15.209099
[ 5] DDR_READ_BANDWIDTH (MByte): 36.434115
[ 6] DDR_WRITE_BANDWIDTH (MByte): 3.008043
[ 7] GPUTOTALCYCLES: 37117151
[ 8] GPUIDLECYCLES: 17855555

NPU = (GPUTOTALCYCLES - GPUIDLECYCLES)/GPUTOTALCYCLES = (37117151 - 17855555)/ 37117151 * 100% = 52 %.

Could I realize continuous monitoring like with help htop?
I’ll be glad for any help! Thanks!

uname -a
Linux B60 4.9.224 #2 SMP PREEMPT Mon Jun 10 05:48:21 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

@FelixFelicisus these particular stats are obtained after the NPU execution and are not realiseable for real time statistics.