2026-06-18 21:58:01 -04:00
|
|
|
..
|
|
|
|
|
SPDX-FileCopyrightText: 2003-2026 Wilson Snyder
|
|
|
|
|
SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
2021-04-11 18:55:06 -04:00
|
|
|
|
2021-09-05 11:33:20 -04:00
|
|
|
verilator_profcfunc
|
|
|
|
|
===================
|
2021-04-11 18:55:06 -04:00
|
|
|
|
2025-11-22 10:39:52 -05:00
|
|
|
Verilator_profcfunc reads a profile report created by gprof. The names of
|
2021-04-11 18:55:06 -04:00
|
|
|
the functions are then transformed, assuming the user used Verilator's
|
2022-12-10 20:09:47 -05:00
|
|
|
--prof-cfuncs, and a report printed showing the percentage of the time,
|
|
|
|
|
etc., in each Verilog block.
|
2021-04-11 18:55:06 -04:00
|
|
|
|
2021-09-05 11:33:20 -04:00
|
|
|
Due to rounding errors in gprof reports, the input report's percentages may
|
2025-11-22 10:39:52 -05:00
|
|
|
not total 100%. In the verilator_profcfunc report this will get reported as
|
|
|
|
|
a rounding error.
|
2021-04-11 18:55:06 -04:00
|
|
|
|
2022-12-10 20:09:47 -05:00
|
|
|
For an overview of the use of verilator_profcfunc, see :ref:`Profiling`.
|
2021-04-11 18:55:06 -04:00
|
|
|
|
2024-12-16 18:02:17 -05:00
|
|
|
verilator_profcfunc Example Usage
|
|
|
|
|
---------------------------------
|
|
|
|
|
|
2025-11-22 10:39:52 -05:00
|
|
|
.. code-block:: bash
|
2024-12-16 18:02:17 -05:00
|
|
|
|
2025-11-22 10:39:52 -05:00
|
|
|
verilator_profcfunc --help
|
|
|
|
|
verilator_profcfunc --version
|
2024-12-16 18:02:17 -05:00
|
|
|
|
2025-11-22 10:39:52 -05:00
|
|
|
verilator_profcfunc gprof.out
|
2024-12-16 18:02:17 -05:00
|
|
|
|
|
|
|
|
|
2021-09-05 11:33:20 -04:00
|
|
|
verilator_profcfunc Arguments
|
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
|
|
.. program:: verilator_profcfunc
|
2021-04-11 18:55:06 -04:00
|
|
|
|
|
|
|
|
.. option:: <filename>
|
|
|
|
|
|
2025-04-26 17:14:49 -04:00
|
|
|
The :command:`gprof`-generated filename to read data from. Typically "gprof.out".
|
2021-04-11 18:55:06 -04:00
|
|
|
|
|
|
|
|
.. option:: --help
|
|
|
|
|
|
2025-04-26 17:14:49 -04:00
|
|
|
Displays a help summary, the program version, and exits.
|