| 510 | } |
| 511 | |
| 512 | string DumpThreadStack(int64_t tid) { |
| 513 | StackTrace trace; |
| 514 | Status s = GetThreadStack(tid, &trace); |
| 515 | if (s.ok()) { |
| 516 | return trace.Symbolize(); |
| 517 | } |
| 518 | return strings::Substitute("<$0>", s.ToString()); |
| 519 | } |
| 520 | |
| 521 | Status ListThreads(vector<pid_t> *tids) { |
| 522 | #ifndef __linux__ |