rahul003 commented on a change in pull request #9933: Adding support to profile kvstore server during distributed training URL: https://github.com/apache/incubator-mxnet/pull/9933#discussion_r171485428
########## File path: src/kvstore/kvstore_dist_server.h ########## @@ -159,6 +163,19 @@ class KVStoreDistServer { sync_mode_ = true; } else if (recved_type == CommandType::kSetGradientCompression) { gradient_compression_->DecodeParams(recved.body); + } else if (recved_type == CommandType::kSetProfilerParams) { + // last char is the type of profiler command + KVStoreServerProfilerCommand profiler_command_type = + static_cast<KVStoreServerProfilerCommand>(recved.body.back() - '0'); + if (profiler_command_type == KVStoreServerProfilerCommand::kSetConfig) { Review comment: Switched ;) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services