diff --git a/doc/tutorials/debug.rst b/doc/tutorials/debug.rst index 7b594ecca..13facbaef 100644 --- a/doc/tutorials/debug.rst +++ b/doc/tutorials/debug.rst @@ -159,6 +159,16 @@ reason and times of each vm_exit after we have done some operations. vmexit summary information +4. Use the command to get a summary of cpu usage in cpu-sharing case:: + + # acrnalyze.py -i /home/trace/acrntrace/20231122-054116/0 -o cpu_usage --cpu_usage + + .. figure:: images/debug_image29.png + :align: center + + cpu usage summary information + + Using Self-Defined Trace Event ID to Analyze Trace ================================================== diff --git a/doc/tutorials/images/debug_image29.png b/doc/tutorials/images/debug_image29.png new file mode 100644 index 000000000..8652deaa5 Binary files /dev/null and b/doc/tutorials/images/debug_image29.png differ diff --git a/misc/debug_tools/acrn_trace/README.rst b/misc/debug_tools/acrn_trace/README.rst index fd6119d9d..be07e954f 100644 --- a/misc/debug_tools/acrn_trace/README.rst +++ b/misc/debug_tools/acrn_trace/README.rst @@ -75,6 +75,7 @@ Options: -f, --frequency=unsigned_int TSC frequency in MHz --vm_exit generate a vm_exit report --irq generate an IRQ-related report +--cpu_usage generate a cpu_usage report .. note:: The tool depends on TSC frequency to do time-based analysis. Be sure to configure the right TSC frequency that ACRN runs on. TSC frequency can be @@ -140,6 +141,8 @@ data to your development computer (Linux system), and run the analysis tool. - The analysis report is written to stdout, or to a CSV file if a file name is specified using ``-o filename``. - The scripts require Python3. + - If want to analyze cpu usage of each VM in cpu-sharing case, use ``--cpu_usage`` + to replace. Build and Install *****************