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

Function GetInVoluntaryContextSwitches

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

Source from the content-addressed store, hash-verified

145}
146
147static uint64_t GetInVoluntaryContextSwitches() {
148 struct rusage ru;
149 CHECK_ERR(getrusage(RUSAGE_SELF, &ru));
150 return ru.ru_nivcsw;
151}
152
153static int32_t GetSchedulingPriority() {
154 const int saved_errno = errno;

Callers 1

StartInstrumentationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected