Identify what the columns mean in the output of "show profile"
authorRussell Bryant <russell@russellbryant.com>
Fri, 25 Aug 2006 18:05:28 +0000 (18:05 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 25 Aug 2006 18:05:28 +0000 (18:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41118 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/asterisk.c

index 14b9f77..9cf3098 100644 (file)
@@ -469,10 +469,12 @@ static int handle_show_profile(int fd, int argc, char *argv[])
        }
        ast_cli(fd, "profile values (%d, allocated %d)\n-------------------\n",
                prof_data->entries, prof_data->max_size);
+       ast_cli(fd, "%6s   %8s  %10s %12s %12s  %s\n", "ID", "Scale", "Events",
+                       "Value", "Average", "Name");
        for (i = min; i < max; i++) {
                struct profile_entry *e = &prof_data->e[i];
                if (!search || strstr(prof_data->e[i].name, search))
-                   ast_cli(fd, "%6d: [%8ld] %10ld %12lld %12lld %s\n",
+                   ast_cli(fd, "%6d: [%8ld] %10ld %12lld %12lld  %s\n",
                        i,
                        (long)e->scale,
                        (long)e->events, (long long)e->value,