The following introduces the msMonitor quick start through common usage scenarios.
First, use the npu-monitor function to obtain the latency of key operators.
When critical operator latency degradation is detected, use nputrace to collect detailed profile data for analysis.
Prerequisites
Complete the msMonitor installation. For details, see .
Procedure
Start the dynolog daemon process.
Example command:
[object Object]Configure the msMonitor environment variables.
[object Object]Set
[object Object]to enable MSPTI (configuration for enabling the npu-monitor feature).[object Object]Start the training or inference task.
The following
[object Object]is a user script example. Use the actual script.[object Object]Use the
[object Object]command to trigger npu-monitor to monitor the latency of key operators.[object Object]Use the
[object Object]command to trigger nputrace to collect detailed trace data (the npu-monitor function must be disabled before nputrace can be triggered).[object Object]