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

Function getSystemStatistics

flow/SystemMonitor.cpp:51–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51SystemStatistics getSystemStatistics() {
52 static StatisticsState statState = StatisticsState();
53 const IPAddress ipAddr = machineState.ip.present() ? machineState.ip.get() : IPAddress();
54 return getSystemStatistics(
55 machineState.folder.present() ? machineState.folder.get() : "", &ipAddr, &statState.systemState, false);
56}
57
58#define TRACEALLOCATOR(size) \
59 TraceEvent("MemSample") \

Calls 4

StatisticsStateClass · 0.85
getMethod · 0.65
IPAddressClass · 0.50
presentMethod · 0.45

Tested by

no test coverage detected