File indexing completed on 2025-05-11 08:24:19
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifdef HAVE_CONFIG_H
0010 #include "config.h"
0011 #endif
0012
0013 #include <stdio.h>
0014
0015 #include <rtems/profiling.h>
0016 #include <rtems/printer.h>
0017 #include <rtems/shell.h>
0018 #include <rtems/shellconfig.h>
0019
0020 static int rtems_shell_main_profreport(int argc, char **argv)
0021 {
0022 rtems_printer printer;
0023 rtems_print_printer_printf(&printer);
0024 rtems_profiling_report_xml(
0025 "Shell",
0026 &printer,
0027 0,
0028 " "
0029 );
0030
0031 return 0;
0032 }
0033
0034 rtems_shell_cmd_t rtems_shell_PROFREPORT_Command = {
0035 .name = "profreport",
0036 .usage = "profreport",
0037 .topic = "rtems",
0038 .command = rtems_shell_main_profreport
0039 };