Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add cpu usage in acrntrace #8686

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions doc/tutorials/debug.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
==================================================

Expand Down
Binary file added doc/tutorials/images/debug_image29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions misc/debug_tools/acrn_trace/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
*****************
Expand Down