Commit e0d1778
committed
(PUP-7520) Update Puppet profiling timers to use monotonic clock
This commit updates Puppet::Util::Profiler::WallClock and
Puppet::Util::Profiler::Aggregate to use
Process.clock_gettime(Process::CLOCK_MONOTONIC) instead of Time.now. Time.now
returns a value from the OS REALTIME clock which can be affected by events
like NTP updates. Process.clock_gettime(Process::CLOCK_MONOTONIC) uses a
monotonic clock which isn't affected by things like NTP updates.1 parent b6dac24 commit e0d1778
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments