Trying to profile the network ran by our code on Macosx.
GetPerformanceCounts() produces output, as expected, when the network is loaded with "CPU" plugin. Using "AUTO" plugin results in an empty output from GetPerformanceCounts(). Did I miss some configuration that needs to be applied to the plugin?
連結已複製
3 回應
Hi aag,
Thanks for reaching out to us.
Yes, KEY_PERF_COUNT is set to “NO” by default for CPU, GPU and AUTO plugins.
For CPU plugin, GetPerformanceCounts() can be used even KEY_PERF_COUNT is set to “NO”.
While for GPU and AUTO plugins, you have to change the KEY_PERF_COUNT to “YES” in order to use GetPerformanceCounts().
Regards,
Peh