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

Function GetThreadStack

src/kudu/util/debug-util.cc:505–509  ·  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, MonoDelta timeout) {
506 StackTraceCollector c;
507 RETURN_NOT_OK(c.TriggerAsync(tid, stack));
508 return c.AwaitCollection(MonoTime::Now() + timeout);
509}
510
511string DumpThreadStack(int64_t tid) {
512 StackTrace trace;

Callers 3

TEST_FFunction · 0.85
TEST_PFunction · 0.85
DumpThreadStackFunction · 0.85

Calls 2

TriggerAsyncMethod · 0.80
AwaitCollectionMethod · 0.80

Tested by 2

TEST_FFunction · 0.68
TEST_PFunction · 0.68