Add perfetto support for counter collection

Fix endtimestamp for counter tracks

Add fix for rocprofv3 counter collection tests

Fix formats and refactors

Added docs and addressed review comments

Address more review comments.
This commit is contained in:
Srihari Uttanur
2025-02-20 10:14:37 +00:00
کامیت شده توسط U, Srihari
والد 4dcb239872
کامیت c9ca876b79
9فایلهای تغییر یافته به همراه234 افزوده شده و 10 حذف شده
@@ -902,6 +902,25 @@ Here is the same sample in JSON format:
]
}
Perfetto visualization for counter collection
+++++++++++++++++++++++++++++++++++++++++++++
When collecting performance counter data, you can visualize the counter tracks per agent in the Perfetto viewer by using the PFTrace output format. This allows you to see how counter values change over time during kernel execution.
To generate a Perfetto trace file with counter data, use:
.. code-block:: shell
rocprofv3 --pmc SQ_WAVES GRBM_GUI_ACTIVE --output-format pftrace -- <application_path>
You can also combine this with other tracing options to correlate counter data with API and kernel execution:
.. code-block:: shell
rocprofv3 -s --pmc SQ_WAVES --output-format pftrace -- <application_path>
The generated Perfetto trace file can be opened in the Perfetto UI (https://ui.perfetto.dev/). In the viewer, performance counters will appear as counter tracks organized by agent, allowing you to visualize counter values changing over time alongside kernel executions and other traced activities.
Agent info
++++++++++++