templates/report/backtrace.html.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Mon, 28 Dec 2015 21:42:10 +0100
changeset 84 41164ea18780
parent 78 0ebef32c34af
permissions -rw-r--r--
Display crashing thread number
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
84
41164ea18780 Display crashing thread number
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
     1
<a data-toggle="collapse" href="#backtrace-crashing-thread"><h3>Crashing thread (#<%= $crashing_thread->{threads_index} %>) top frames</h3></a>
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     2
<div id="backtrace-crashing-thread" class="collapse in">
37
013953be0f3b Add a new backtrace-processing filter stack
Vincent Tondellier <tonton+hg@team1664.org>
parents: 25
diff changeset
     3
  %= include 'report/backtrace/frames', thread => $crashing_thread
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     4
</div>
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     5
<a data-toggle="collapse" href="#backtrace-all-threads"><h3>All threads</h3></a>
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     6
<div id="backtrace-all-threads" class="collapse in">
25
1a1cf5c35cfb Collapsable thread backtrace
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
     7
  % my $thread_id = 0;
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     8
  % foreach my $thread(@$threads) {
25
1a1cf5c35cfb Collapsable thread backtrace
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
     9
    %= t a => ( 'data-toggle' => "collapse", href => "#backtrace-thread-$thread_id" ) => begin
1a1cf5c35cfb Collapsable thread backtrace
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    10
      %= t h4 => "Thread $thread_id"
1a1cf5c35cfb Collapsable thread backtrace
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    11
    % end
1a1cf5c35cfb Collapsable thread backtrace
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    12
    %= t div => ( id => "backtrace-thread-$thread_id", class => "collapse in" ) => begin
37
013953be0f3b Add a new backtrace-processing filter stack
Vincent Tondellier <tonton+hg@team1664.org>
parents: 25
diff changeset
    13
      %= include 'report/backtrace/frames', thread => $thread
25
1a1cf5c35cfb Collapsable thread backtrace
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    14
      % $thread_id = $thread_id + 1;
1a1cf5c35cfb Collapsable thread backtrace
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    15
    % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    16
  % }
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    17
</div>