From 2bd71d95b6bf2dba738ea95b4fa73d8942f21bee Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 6 Mar 2015 14:41:24 +0100 Subject: shell: Add PROFREPORT command --- doc/shell/rtems.t | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) (limited to 'doc/shell/rtems.t') diff --git a/doc/shell/rtems.t b/doc/shell/rtems.t index 5ebead3e4e..b31696e3af 100644 --- a/doc/shell/rtems.t +++ b/doc/shell/rtems.t @@ -15,6 +15,7 @@ The RTEMS shell has the following rtems commands: @item @code{cpuuse} - print or reset per thread cpu usage @item @code{stackuse} - print per thread stack usage @item @code{perioduse} - print or reset per period usage +@item @code{profreport} - print a profiling report @item @code{wkspace} - Display information on Executive Workspace @item @code{config} - Show the system configuration. @item @code{itask} - List init tasks for the system @@ -379,6 +380,113 @@ following prototype: extern rtems_shell_cmd_t rtems_shell_PERIODUSE_Command; @end example +@c +@c +@c +@page +@subsection profreport - print a profiling report + +@pgindex profreport + +@subheading SYNOPSYS: + +@example +profreport +@end example + +@subheading DESCRIPTION: + +This command may be used to print a profiling report. + +@subheading EXIT STATUS: + +This command returns 0. + +@subheading NOTES: + +Profiling must be enabled at build configuration time to get profiling +information. + +@subheading EXAMPLES: + +The following is an example of how to use @code{profreport}: + +@smallexample +SHLL [/] $ profreport + + + 10447 + 2 + 195926627 + 77908688 + 0 + 688 + 127 + 282651157 + 2215855 + + + 9053 + 41 + 3053830335 + 73334202 + 0 + 57 + 35 + 76980203 + 2141179 + + + 608 + 1387 + 112 + 338 + 119031 + 357222 + 1055 + 1055 + 0 + 0 + 0 + + + 4186 + 7575 + 160 + 183 + 1772793111 + 2029733879 + 11039140 + 11037655 + 1485 + 0 + 0 + + +@end smallexample + +@subheading CONFIGURATION: + +@findex CONFIGURE_SHELL_NO_COMMAND_PROFREPORT +@findex CONFIGURE_SHELL_COMMAND_PROFREPORT + +When building a custom command set, define +@code{CONFIGURE_SHELL_COMMAND_PROFREPORT} to have this +command included. + +This command can be excluded from the shell command set by +defining @code{CONFIGURE_SHELL_NO_COMMAND_PROFREPORT} when all +shell commands have been configured. + +@subheading PROGRAMMING INFORMATION: + +The configuration structure for the @code{profreport} has the +following prototype: + +@example +extern rtems_shell_cmd_t rtems_shell_PROFREPORT_Command; +@end example + @c @c @c -- cgit v1.2.3