MCPcopy Create free account
hub / github.com/3rdparty/libprocess / initialize

Method initialize

include/process/system.hpp:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59protected:
60 void initialize() override
61 {
62 // TODO(dhamon): Check return values.
63 metrics::add(load_1min);
64 metrics::add(load_5min);
65 metrics::add(load_15min);
66 metrics::add(cpus_total);
67 metrics::add(mem_total_bytes);
68 metrics::add(mem_free_bytes);
69
70 route("/stats.json", statsHelp(), &System::stats);
71 }
72
73 void finalize() override
74 {

Callers

nothing calls this directly

Calls 1

addFunction · 0.85

Tested by

no test coverage detected