MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / call

Method call

src/ExtCmd.actor.cpp:1016–1023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014struct GetMemoryUsageCmd {
1015 static const char* name;
1016 static Future<Reference<ExtMsgReply>> call(Reference<ExtConnection> nmc,
1017 Reference<ExtMsgQuery> query,
1018 Reference<ExtMsgReply> reply) {
1019 reply->addDocument(BSON("process memory usage"
1020 << ((double)getMemoryUsage() / (1024 * 1024)) << "resident memory usage"
1021 << ((double)getResidentMemoryUsage() / (1024 * 1024)) << "ok" << 1));
1022 return reply;
1023 }
1024};
1025REGISTER_CMD(GetMemoryUsageCmd, "getmemoryusage");
1026

Callers

nothing calls this directly

Calls 1

addDocumentMethod · 0.80

Tested by

no test coverage detected