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

Method push

include/process/metrics/metric.hpp:63–71  ·  view source on GitHub ↗

Inserts 'value' into the history for this metric.

Source from the content-addressed store, hash-verified

61
62 // Inserts 'value' into the history for this metric.
63 void push(double value) {
64 if (data->history.isSome()) {
65 Time now = Clock::now();
66
67 synchronized (data->lock) {
68 data->history.get()->set(value, now);
69 }
70 }
71 }
72
73private:
74 struct Data {

Callers 13

handleMethod · 0.80
readMethod · 0.80
writeMethod · 0.80
sendMethod · 0.80
synchronizedFunction · 0.80
synchronizedFunction · 0.80
synchronizedFunction · 0.80
write_lockMethod · 0.80
write_unlockMethod · 0.80
read_lockMethod · 0.80
lockMethod · 0.80
putMethod · 0.80

Calls 3

synchronizedFunction · 0.50
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected