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

Method Run

be/src/kudu/util/pstack_watcher.cc:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void PstackWatcher::Run() {
86 MutexLock guard(lock_);
87 if (!running_) return;
88 cond_.WaitFor(timeout_);
89 if (!running_) return;
90
91 WARN_NOT_OK(DumpStacks(DUMP_FULL), "Unable to print pstack from watcher");
92 running_ = false;
93 cond_.Broadcast();
94}
95
96Status PstackWatcher::HasProgram(const char* progname) {
97 Subprocess proc({ "which", progname } );

Callers 1

PstackWatcherMethod · 0.95

Calls 2

BroadcastMethod · 0.80
WaitForMethod · 0.45

Tested by

no test coverage detected