MCPcopy Create free account
hub / github.com/apple/foundationdb / setPdhString

Function setPdhString

flow/Platform.actor.cpp:213–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213bool setPdhString(int id, std::string& out) {
214 char buf[512];
215 DWORD sz = 512;
216 if (!handlePdhStatus(PdhLookupPerfNameByIndex(nullptr, id, buf, &sz), "PdhLookupPerfByNameIndex"))
217 return false;
218 out = buf;
219 return true;
220}
221#endif
222
223#ifdef __unixish__

Callers 1

initPdhStringsFunction · 0.85

Calls 1

handlePdhStatusFunction · 0.85

Tested by

no test coverage detected