Track client command cost by command.

This commit is contained in:
JoelKatz
2013-07-31 20:32:32 -07:00
parent 052aee8f97
commit 16206dbaca

View File

@@ -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.