src/xs/DualTrace.cc | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 9 | 100.0 |
branch | 2 | 4 | 50.0 |
condition | n/a | ||
subroutine | n/a | ||
pod | n/a | ||
total | 11 | 13 | 84.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #include "DualTrace.h" | ||||||
2 | |||||||
3 | using panda::string; | ||||||
4 | |||||||
5 | namespace xs { | ||||||
6 | |||||||
7 | 6 | string DualTrace::to_string() noexcept { | |||||
8 | 6 | string r; | |||||
9 | 6 | 50 | if (c_trace) { | ||||
10 | 6 | r += "C backtrace:\n"; | |||||
11 | 6 | r += c_trace->to_string(); | |||||
12 | } | ||||||
13 | 6 | 50 | if (perl_trace) { | ||||
14 | 6 | r += "Perl backtrace:\n"; | |||||
15 | 6 | r += perl_trace->to_string(); | |||||
16 | } | ||||||
17 | 6 | return r; | |||||
18 | } | ||||||
19 | |||||||
20 | } |