source: rtems/cpukit/libmisc/shell/main_profreport.c @ 2bd71d95

4.115
Last change on this file since 2bd71d95 was 2bd71d95, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 6, 2015 at 1:41:24 PM

shell: Add PROFREPORT command

  • Property mode set to 100644
File size: 855 bytes
Line 
1/*
2 * Copyright (c) 2015 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#if HAVE_CONFIG_H
16  #include "config.h"
17#endif
18
19#include <stdio.h>
20
21#include <rtems/profiling.h>
22#include <rtems/shell.h>
23#include <rtems/shellconfig.h>
24
25static int rtems_shell_main_profreport(int argc, char **argv)
26{
27  rtems_profiling_report_xml(
28    "Shell",
29    (rtems_profiling_printf) fprintf,
30    stdout,
31    0,
32    "  "
33  );
34
35  return 0;
36}
37
38rtems_shell_cmd_t rtems_shell_PROFREPORT_Command = {
39  .name = "profreport",
40  .usage = "profreport",
41  .topic = "rtems",
42  .command = rtems_shell_main_profreport
43};
Note: See TracBrowser for help on using the repository browser.