v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
stack_trace_fuchsia.cc
Go to the documentation of this file.
1
// Copyright 2017 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#include "
src/base/debug/stack_trace.h
"
6
7
#include <iomanip>
8
#include <ostream>
9
10
#include "
src/base/platform/platform.h
"
11
12
namespace
v8
{
13
namespace
base
{
14
namespace
debug {
15
16
bool
EnableInProcessStackDumping
() {
17
// The system crashlogger captures and prints backtraces which are then
18
// symbolized by a host-side script that runs addr2line. Because symbols are
19
// not available on device, there's not much use in implementing in-process
20
// capture.
21
return
false
;
22
}
23
24
void
DisableSignalStackDump
() {}
25
26
StackTrace::StackTrace
() {}
27
28
void
StackTrace::Print
()
const
{
29
std::string backtrace =
ToString
();
30
OS::Print(
"%s\n"
, backtrace.c_str());
31
}
32
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"
;
36
}
37
}
38
39
}
// namespace debug
40
}
// namespace base
41
}
// namespace v8
v8::base::debug::StackTrace::count_
size_t count_
Definition
stack_trace.h:90
v8::base::debug::StackTrace::OutputToStream
void OutputToStream(std::ostream *os) const
Definition
stack_trace_android.cc:83
v8::base::debug::StackTrace::ToString
std::string ToString() const
Definition
stack_trace.cc:32
v8::base::debug::StackTrace::Print
void Print() const
Definition
stack_trace_android.cc:78
v8::base::debug::StackTrace::trace_
void * trace_[kMaxTraces]
Definition
stack_trace.h:87
v8::base::debug::StackTrace::StackTrace
StackTrace()
Definition
stack_trace_android.cc:72
base
OpIndex base
Definition
instruction-selector-ia32.cc:65
v8::base::debug::EnableInProcessStackDumping
V8_BASE_EXPORT bool EnableInProcessStackDumping()
Definition
stack_trace_android.cc:57
v8::base::debug::DisableSignalStackDump
V8_BASE_EXPORT void DisableSignalStackDump()
Definition
stack_trace_android.cc:69
v8::internal
Definition
api-arguments-inl.h:20
v8
Definition
api-arguments-inl.h:19
platform.h
stack_trace.h
src
base
debug
stack_trace_fuchsia.cc
Generated on Sun Apr 6 2025 21:08:50 for v8 by
1.12.0