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

Function GetThreadStack

be/src/kudu/util/debug-util.cc:505–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503#endif // #ifdef __linux__ ... #else ...
504
505Status GetThreadStack(int64_t tid, StackTrace* stack) {
506 StackTraceCollector c;
507 RETURN_NOT_OK(c.TriggerAsync(tid, stack));
508 RETURN_NOT_OK(c.AwaitCollection(MonoTime::Now() + MonoDelta::FromSeconds(1)));
509 return Status::OK();
510}
511
512string DumpThreadStack(int64_t tid) {
513 StackTrace trace;

Callers 3

TEST_FFunction · 0.85
TEST_PFunction · 0.85
DumpThreadStackFunction · 0.85

Calls 3

OKFunction · 0.85
TriggerAsyncMethod · 0.80
AwaitCollectionMethod · 0.80

Tested by 2

TEST_FFunction · 0.68
TEST_PFunction · 0.68