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

Function addCounters

flow/Platform.actor.cpp:1366–1377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1364}
1365
1366std::vector<HCOUNTER> addCounters(HQUERY Query, const char* path) {
1367 std::vector<HCOUNTER> counters;
1368
1369 std::vector<std::string> paths = expandWildcardPath(path);
1370
1371 for (int i = 0; i < paths.size(); i++) {
1372 HCOUNTER counter;
1373 handlePdhStatus(PdhAddCounter(Query, paths[i].c_str(), 0, &counter), "PdhAddCounter");
1374 counters.push_back(counter);
1375 }
1376 return counters;
1377}
1378#endif
1379
1380struct SystemStatisticsState {

Callers 1

getSystemStatisticsFunction · 0.85

Calls 5

expandWildcardPathFunction · 0.85
handlePdhStatusFunction · 0.85
sizeMethod · 0.45
c_strMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected