From 16206dbacaae8e635ffe29e36a83474a7896fe56 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 31 Jul 2013 20:32:32 -0700 Subject: [PATCH] Track client command cost by command. --- modules/ripple_app/rpc/RPCHandler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ripple_app/rpc/RPCHandler.cpp b/modules/ripple_app/rpc/RPCHandler.cpp index 6e0a697c2a..dfdde3a806 100644 --- a/modules/ripple_app/rpc/RPCHandler.cpp +++ b/modules/ripple_app/rpc/RPCHandler.cpp @@ -3724,6 +3724,8 @@ Json::Value RPCHandler::doCommand (const Json::Value& params, int iRole, LoadTyp { try { + LoadEvent::autoptr ev = getApp().getJobQueue().getLoadEventAP( + jtGENERIC, std::string("cmd:") + strCommand); Json::Value jvRaw = (this->* (commandsA[i].dfpFunc)) (params, loadType, lock); // Regularize result.