MCPcopy Create free account
hub / github.com/apache/impala / GetCpuUTime

Function GetCpuUTime

be/src/kudu/util/thread.cc:129–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127namespace kudu {
128
129static uint64_t GetCpuUTime() {
130 struct rusage ru;
131 CHECK_ERR(getrusage(RUSAGE_SELF, &ru));
132 return ru.ru_utime.tv_sec * 1000UL + ru.ru_utime.tv_usec / 1000UL;
133}
134
135static uint64_t GetCpuSTime() {
136 struct rusage ru;

Callers 1

StartInstrumentationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected