Meng Zhu created MESOS-9126:
-------------------------------
Summary: Timer metric should use stopwatch rather than libprocess
clock.
Key: MESOS-9126
URL: https://issues.apache.org/jira/browse/MESOS-9126
Project: Mesos
Issue Type: Improvement
Reporter: Meng Zhu
Assignee: Meng Zhu
Timer metric currently relies on libprocess tiimer:
https://github.com/apache/mesos/blob/master/3rdparty/libprocess/include/process/metrics/timer.hpp#L64
There are two drawbacks:
(1) It is relatively expensive since it needs to grab a mutex;
(2) This makes the timer metrics not usable in test/benchmarks where we
manually manipulate the clock.
We should just use the stopwatch for the metrics:
https://github.com/apache/mesos/blob/1b6b6f611fdaf00f9d6080b7ca18e49a42f14c98/3rdparty/stout/include/stout/stopwatch.hpp#L64
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)