mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Fix RealTimeMicroseconds ProfileEvents
RUsageCounters::real_time (RealTimeMicroseconds) was constructed from CLOCK_REALTIME (or similar) in the ThreadStatus::initPerformanceCounters() (ThreadStatusExt.cpp), while the intention is to store CLOCK_MONOTONIC (time from boot, i.e. /proc/uptime) values there (in ThreadProfileEvents.h)
This commit is contained in:
parent
553f6aa4cd
commit
c0e15ba348
@ -171,7 +171,8 @@ void ThreadStatus::initPerformanceCounters()
|
|||||||
query_start_time_microseconds = time_in_microseconds(now);
|
query_start_time_microseconds = time_in_microseconds(now);
|
||||||
++queries_started;
|
++queries_started;
|
||||||
|
|
||||||
*last_rusage = RUsageCounters::current(query_start_time_nanoseconds);
|
// query_start_time_nanoseconds cannot be used here since RUsageCounters expect CLOCK_MONOTONIC
|
||||||
|
*last_rusage = RUsageCounters::current();
|
||||||
|
|
||||||
if (query_context)
|
if (query_context)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user