-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
114 lines (99 loc) · 3.18 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>The Thread Dump Analyzer Tool</title>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
#plainDump{
width: 50em;
height: 20em;
font-family: monospace;
}
.running-thread{
color: green;
font-weight: bold;
}
.blocked-thread{
color: red;
font-weight: bold;
}
.waiting-thread{
color: orange;
font-weight: bold;
}
.timed-waiting-thread{
color: darkorange;
font-weight: bold;
}
.thread-listing{
max-height: 30em;
overflow:scroll;
/*margin-left: 10px;*/
}
.leading-tab{
padding-left: 1em;
}
table.info tr td{
max-width: 20em;
padding-right: 10px;
}
.bs-callout-info {
border-left-color: #1b809e;
}
.bs-callout {
padding: 20px;
margin: 20px 0;
border: 1px solid #eee;
border-left-width: 5px;
border-radius: 3px;
}
</style>
</head>
<body>
<div class="container-fluid">
<h1>Thread Dump Analyzer</h1>
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist" id="tabs">
<li role="presentation" class="active"><a href="#dump" aria-controls="home" role="tab" data-toggle="tab">Dump</a></li>
<li role="presentation"><a href="#analysis" aria-controls="profile" role="tab" data-toggle="tab">Analysis</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="dump">
<br/>
<label for="plainDump">Drop your thread dump here</label>
<br/>
<form onsubmit="return false;">
<textarea id="plainDump" spellcheck="false"> </textarea>
<br/>
<button id="analyze" class="btn btn-primary">Analyze</button>
<button id="reset" class="btn btn-primary" type="reset">Reset</button>
</form>
<div id="alertContainer"></div>
</div>
<div role="tabpanel" class="tab-pane" id="analysis">
<br/>
</div>
</div>
</div>
<script type="text/javascript" src="target/scala-2.11/thread-dump-analyzer-fastopt.js"></script>
<!--<script type="text/javascript" src="target/scala-2.11/thread-dump-analyzer-opt.js"></script>-->
<script type="text/javascript">
var conf = new io.blep.tda.Configuration({
plainDumpId:"plainDump",
analyzeBtnId:"analyze",
resetBtnId:"reset",
alertContainerId: "alertContainer",
resultContainerId: "analysis",
viewType:"bootstrap"
})
var controller = io.blep.tda.Controller().init(conf);
document.body.addEventListener("analysis_finished", function(){
$('#tabs a[href="#analysis"]').tab('show')
})
</script>
</body>
</html>