Commit 98ff8da
committed
use clock_monitonic_coarse for series reset
Using CLOCK_REALTIME for measuring time to reset the series
is expensive (clock_gettime will do a system call).
This is called in procstat_u64_series_add_point(),
which means every update to the series (likely, on every IO)
does this.
Replace with CLOCK_MONOTONIC_COARSE.
Signed-off-by: Anton Eidelman <anton@lightbitslabs.com>1 parent bcba013 commit 98ff8da
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
1015 | 1017 | | |
1016 | 1018 | | |
1017 | 1019 | | |
1018 | | - | |
| 1020 | + | |
1019 | 1021 | | |
1020 | 1022 | | |
1021 | 1023 | | |
| |||
1226 | 1228 | | |
1227 | 1229 | | |
1228 | 1230 | | |
1229 | | - | |
| 1231 | + | |
1230 | 1232 | | |
1231 | 1233 | | |
1232 | 1234 | | |
| |||
1696 | 1698 | | |
1697 | 1699 | | |
1698 | 1700 | | |
1699 | | - | |
| 1701 | + | |
1700 | 1702 | | |
1701 | 1703 | | |
1702 | 1704 | | |
| |||
0 commit comments