]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: OSD: add 'heap' command to known osd commands array
authorJoao Eduardo Luis <jecluis@gmail.com>
Fri, 20 Sep 2013 16:50:27 +0000 (17:50 +0100)
committerJoao Eduardo Luis <jecluis@gmail.com>
Fri, 20 Sep 2013 16:51:42 +0000 (17:51 +0100)
Must have been forgotten during the cli rework.

Backport: dumpling

Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
src/osd/OSD.cc

index cff0c8d6a52d7c1e0386b4d194c3e69590287114..a9f82b51742569dbfb41df94a04fff6e45c0c82a 100644 (file)
@@ -3948,6 +3948,10 @@ COMMAND("bench " \
        "(default 1G size 4MB). Results in log.",
        "osd", "rw", "cli,rest")
 COMMAND("flush_pg_stats", "flush pg stats", "osd", "rw", "cli,rest")
+COMMAND("heap " \
+       "name=heapcmd,type=CephChoices,strings=dump|start_profiler|stop_profiler|release|stats", \
+       "show heap usage info (available only if compiled with tcmalloc)", \
+       "osd", "rw", "cli,rest")
 COMMAND("debug_dump_missing " \
        "name=filename,type=CephFilepath",
        "dump missing objects to a named file", "osd", "r", "cli,rest")