]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: enable cpu_profiler
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 1 Mar 2011 16:47:14 +0000 (08:47 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 1 Mar 2011 16:47:41 +0000 (08:47 -0800)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/osd/OSD.cc

index a347be26197b6273a4bca7df9ab8907d2e928bb1..76e2021a10d77ac7824752c85b5d6ec0d4bd18f9 100644 (file)
@@ -81,6 +81,7 @@
 #include "common/Timer.h"
 #include "common/LogClient.h"
 #include "common/safe_io.h"
+#include "perfglue/cpu_profiler.h"
 
 #include "common/ClassHandler.h"
 
@@ -2164,6 +2165,9 @@ void OSD::handle_command(MMonCommand *m)
       recovery_wq.kick();
     }
   }
+  else if (m->cmd[0] == "cpu_profiler") {
+    cpu_profiler_handle_command(m->cmd, clog);
+  }
   else dout(0) << "unrecognized command! " << m->cmd << dendl;
 
 done: