Zepp-Hanzj opened a new pull request, #18979:
URL: https://github.com/apache/nuttx/pull/18979

   ## Summary
   
   Add documentation for the ``gprof`` command, which controls NuttX 
function-call profiling. Covers the ``start``, ``stop``, ``dump``, and ``help`` 
subcommands, configuration dependencies on ``CONFIG_PROFILE`` and 
``CONFIG_SYSTEM_GPROF``, and a worked example showing how to collect and 
analyse a ``gmon.out`` file.
   
   Refs #11081
   
   ## Source verification
   
   Evidence drawn from:
   
   - ``apps/system/gprof/gprof.c`` (85 lines; 3 subcommands dispatched via 
``strcmp``)
   - ``apps/system/gprof/Kconfig`` (``tristate``; depends on ``!PROFILE_NONE || 
SIM_GPROF``)
   - ``include/sys/gmon.h`` (``monstartup()``, ``moncontrol()``, 
``_mcleanup()`` prototypes and semantics)
   
   ## Docs build
   
   .. code-block:: bash
   
      cd Documentation
      python3 -c "...docutils parse..."   # RST parse OK
      PYTHONPATH=_extensions python3 -m sphinx -b dummy . 
/tmp/nuttx-docs-build-gprof
      # build succeeded, no gprof warnings
   
   Signed-off-by: hanzj <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to