| 29 | } |
| 30 | |
| 31 | size_t StackTrace::CopyAddressTo(void** buffer, size_t max_nframes) const { |
| 32 | size_t nframes = std::min(count_, max_nframes); |
| 33 | memcpy(buffer, trace_, nframes * sizeof(void*)); |
| 34 | return nframes; |
| 35 | } |
| 36 | |
| 37 | std::string StackTrace::ToString() const { |
| 38 | std::string str; |
no outgoing calls