How to get gpu info on Jetson Xavier NX platform?

Hi,I want to get number and utilization of GPUs on Jetson Xavier NX platform.Is there an API that can meet this requirement?

You might want to check out tegrastats and/or jetson_stats

yes,I found out the tool just came out.But I need an interface that can be invoked in C/C++ programs.Can you tell me what functions are called at the bottom of the tegrastatus tool?

hello 1967367916,

may I know what’s your actual use-case?
you may check file system nodes for its frequency,
for example, $ cat /sys/class/devfreq/17000000.gv11b/cur_freq