5 #include "src/base/debug/stack_trace.h" 10 #include "src/base/platform/platform.h" 16 bool EnableInProcessStackDumping() {
24 void DisableSignalStackDump() {}
26 StackTrace::StackTrace() {}
28 void StackTrace::Print()
const {
29 std::string backtrace = ToString();
30 OS::Print(
"%s\n", backtrace.c_str());
33 void StackTrace::OutputToStream(std::ostream* os)
const {
34 for (
size_t i = 0;
i < count_; ++
i) {
35 *os <<
"#" << std::setw(2) <<
i << trace_[
i] <<
"\n";