Inserts 'value' into the history for this metric.
| 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 | |
| 73 | private: |
| 74 | struct Data { |
no test coverage detected