Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some #23

Open
wants to merge 433 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
433 commits
Select commit Hold shift + click to select a range
ffe031d
Additional README formatting
Jul 10, 2011
cad1d2f
Crappy dashboard
Jul 11, 2011
3bb78c8
Fix colour of 'dashboard dump' header
Jul 11, 2011
1d31483
use our project git uri instead of spawnfest one in readme
RJ Jul 11, 2011
0f4edae
update for latest extend version of cowboy
puzza007 Nov 1, 2011
a368a42
fix bug using confval
Apr 12, 2012
3e48734
depend on cowboy and jsx
mokele Apr 30, 2012
2a72797
Merge pull request #13 from coolluck/3c0ac381
mokele Apr 30, 2012
c795651
change the deps
Nov 5, 2013
df40c83
compile the code based on the latest deps
Nov 6, 2013
2c0f951
compile the code based on the latest deps
Nov 6, 2013
9dfbce5
clean deps
Nov 6, 2013
026b0a8
clean deps
Nov 6, 2013
b352970
add fail_on_warning compile opt
Nov 6, 2013
35d4c5d
cowboy_static replaces with bigwig_http_static
Nov 6, 2013
5dae4da
cowboy_static replaces with bigwig_http_static
Nov 6, 2013
c833400
adopt lager logging and let the index page work
Nov 6, 2013
5ac0b6c
adopt lager logging and let the index page work
Nov 6, 2013
d33898c
clean the code according to the latest cowboy api
Nov 6, 2013
3edfc53
clean the code according to the latest cowboy api
Nov 6, 2013
b8c5ba7
refactor etop2 handler
Nov 7, 2013
55cf9ea
refactor etop2 handler
Nov 7, 2013
01db47e
add otp_vsn limit
Nov 7, 2013
a05763f
#5084
Nov 7, 2013
b5f0b09
#5084
Nov 7, 2013
ae96899
Merge branch 'master' of github.com:jacktang/bigwig
Nov 7, 2013
33b0771
Merge branch 'master' of github.com:jacktang/bigwig
Nov 7, 2013
9076429
#5084 remove the test code
Nov 7, 2013
f7f6d85
#5084 remove the test code
Nov 7, 2013
84e1d6c
let etop2 work
Nov 7, 2013
eeb84d6
let etop2 work
Nov 7, 2013
8a87b86
let http vm work
Nov 7, 2013
1da699f
let http vm work
Nov 7, 2013
0c9612e
let etop2 work
Nov 8, 2013
ea509cf
let etop2 work
Nov 8, 2013
06ae908
render.js(185),et.js(14)modify the HyperlinkProblem
Nov 9, 2013
3f131dc
render.js(185),et.js(14)modify the HyperlinkProblem
Nov 9, 2013
bf1979f
render.js(185),et.js(14)modify the HyperlinkProblem
Nov 9, 2013
89ce4e9
render.js(185),et.js(14)modify the HyperlinkProblem
Nov 9, 2013
5ed4672
#5084
Nov 11, 2013
2c08504
#5084
Nov 11, 2013
b87d5f9
add http_pid path
Nov 11, 2013
17aa7fd
add http_pid path
Nov 11, 2013
d5c6a1b
#5084 modify the href problem
Nov 11, 2013
30bd8bb
#5084 modify the href problem
Nov 11, 2013
56df3cb
let pid href work
Nov 12, 2013
613f645
let pid href work
Nov 12, 2013
e7ee244
let moduleinfo href work
Nov 12, 2013
f35d756
let moduleinfo href work
Nov 12, 2013
e732729
let moduleinfo href work
Nov 12, 2013
5ea91e6
let moduleinfo href work
Nov 12, 2013
4579584
let module info show normal
Nov 12, 2013
1b3a82d
let module info show normal
Nov 12, 2013
39f8cef
let report work
Nov 14, 2013
34ee630
let report work
Nov 14, 2013
e26aa82
let application work
Nov 14, 2013
4a9a044
let application work
Nov 14, 2013
b83e1df
remove old functions
Nov 14, 2013
5f693a3
remove old functions
Nov 14, 2013
9c99017
let application work
Nov 14, 2013
e022ebb
let application work
Nov 14, 2013
da174ef
jsx
Nov 14, 2013
4792a33
let systeminfo show
Nov 15, 2013
e2dfd1b
let systeminfo show
Nov 15, 2013
eed7263
let systeminfo show
Nov 15, 2013
90dd015
let systeminfo show
Nov 15, 2013
bd9b73e
add module to fix some term_to_json issue in bigwig
Nov 17, 2013
349e5cb
add module to fix some term_to_json issue in bigwig
Nov 17, 2013
663f3c6
#5107
Nov 18, 2013
84f2c5d
#5107
Nov 18, 2013
1c3c9ea
Merge branch 'master' of github.com:jacktang/bigwig
Nov 18, 2013
dc7c025
Merge branch 'master' of github.com:jacktang/bigwig
Nov 18, 2013
4d2104c
#5107 let lager:status show
Nov 19, 2013
729080e
#5107 let lager:status show
Nov 19, 2013
5e7f406
#5107
Nov 19, 2013
64d3de7
#5107
Nov 19, 2013
a63a935
5107
Nov 20, 2013
c1c9ebc
5107
Nov 20, 2013
7c70958
#5107
Nov 21, 2013
a9f44c5
#5107
Nov 21, 2013
23b1365
#5107
Nov 22, 2013
6d5c3b6
#5107
Nov 22, 2013
c981589
#5107 websocket
Nov 22, 2013
2cd445b
#5107 websocket
Nov 22, 2013
1a35a74
#5107 trace
Nov 22, 2013
8c5e9a9
#5107 trace
Nov 22, 2013
daaa3d6
#5107
Nov 22, 2013
49232ff
#5107
Nov 22, 2013
a57926f
#5107 tracelog
Nov 22, 2013
d478b9e
#5107 tracelog
Nov 22, 2013
081dc61
#5107
Nov 22, 2013
960a3a9
#5107
Nov 22, 2013
d7c64f5
#5107
Nov 22, 2013
356209d
#5107
Nov 22, 2013
d8a3686
#5107
Nov 22, 2013
6a6a314
#5107
Nov 22, 2013
696379d
#5107 modify the format
Nov 22, 2013
2a5e8a2
#5107 modify the format
Nov 22, 2013
d97d8f5
#5107 modify the trace log format
Nov 25, 2013
7e86209
#5107 modify the trace log format
Nov 25, 2013
bf7a9d7
#5107
Nov 25, 2013
86751b0
#5107
Nov 25, 2013
d518f00
#5107 add trace
Nov 25, 2013
d41192c
#5107 add trace
Nov 25, 2013
d1657c9
#5107 add trace
Nov 25, 2013
6652810
#5107 add trace
Nov 25, 2013
8374298
#5107
Nov 25, 2013
f9d5144
#5107
Nov 25, 2013
79fecba
#5107 add tracer
Nov 25, 2013
bba5422
#5107 add tracer
Nov 25, 2013
856bae5
#5107
Nov 25, 2013
36701bc
#5107
Nov 25, 2013
68d80db
#5107
Nov 25, 2013
a09b39d
#5107
Nov 25, 2013
32800d2
#5107 modify format
Nov 26, 2013
8ff3190
#5107 modify format
Nov 26, 2013
fbb8a68
#5107 modify format
Nov 26, 2013
e1a03d3
#5107 modify format
Nov 26, 2013
a527211
#5107 modify the input text length
Nov 26, 2013
de769ba
#5107 modify the input text length
Nov 26, 2013
b0163c6
#5107 add tracer
Nov 26, 2013
869564a
#5107 add tracer
Nov 26, 2013
4e77b94
#5107
Nov 26, 2013
c59a310
#5107
Nov 26, 2013
8dd4f79
#5107 remove some testcode
Nov 26, 2013
640618d
#5107 remove some testcode
Nov 26, 2013
626a27a
#5107 clear traces
Nov 26, 2013
f4aca05
#5107 clear traces
Nov 26, 2013
20a0760
#5107 clear all traces
Nov 26, 2013
19872d4
#5107 clear all traces
Nov 26, 2013
f8b712e
#5107 clear all traces
Nov 26, 2013
a3b3c57
#5107 clear all traces
Nov 26, 2013
72bfc80
#5107 clear all traces
Nov 26, 2013
aa958a7
#5107 clear all traces
Nov 26, 2013
6d6cf05
#5107 clear all traces
Nov 26, 2013
c380d36
#5107 clear all traces
Nov 26, 2013
bc94084
#5107 modify color
Nov 26, 2013
22f0ac0
#5107 modify color
Nov 26, 2013
d3cc5d6
#5107 modify the dialog style
Nov 26, 2013
6e33bd6
#5107 modify the dialog style
Nov 26, 2013
b2250f8
#5107 unsubscribe
Nov 27, 2013
2cef852
#5107 unsubscribe
Nov 27, 2013
f41c587
#5107 Unsubscribe
Nov 27, 2013
7cb1079
#5107 Unsubscribe
Nov 27, 2013
cf8c1ef
#5107 unsubscribe
Nov 27, 2013
df80579
#5107 unsubscribe
Nov 27, 2013
7c352f4
#5107 unsubscribe
Nov 27, 2013
7dfa28a
#5107 unsubscribe
Nov 27, 2013
eb0b238
#5107 unsubscribe
Nov 27, 2013
77907bd
#5107 unsubscribe
Nov 27, 2013
00a292a
#5107 unsubscribe
Nov 28, 2013
b9602df
#5107 unsubscribe
Nov 28, 2013
b874e87
#5107 unsubscribe
Nov 28, 2013
127ba00
#5107 unsubscribe
Nov 28, 2013
6dbd02c
#5107 ajax
Nov 29, 2013
27c01f5
#5107 ajax
Nov 29, 2013
4fcfc96
#5107 ajax
Nov 29, 2013
cbc702d
#5107 ajax
Nov 29, 2013
b198bc8
#5107 unsubscirbe
Nov 29, 2013
7ae6610
#5107 unsubscirbe
Nov 29, 2013
43356a2
#5107 unsubscribe
Nov 29, 2013
4fb0dfb
#5107 unsubscribe
Nov 29, 2013
d0617b2
#5107 modify the dialog format
Nov 30, 2013
5661338
#5107 modify the dialog format
Nov 30, 2013
8757a61
#5107 fix unsubcribe prolem
Nov 30, 2013
4baa5c3
#5107 fix unsubcribe prolem
Nov 30, 2013
289cf4e
#5107 stop single trace
Dec 2, 2013
bcd29ed
#5107 stop single trace
Dec 2, 2013
705b6bf
jsx
Dec 3, 2013
e475729
jsx
Dec 3, 2013
64db979
add jiffy_ext module to handle term to json
Dec 3, 2013
825841a
add jiffy_ext module to handle term to json
Dec 3, 2013
1ed973d
Merge branch 'master' of github.com:jacktang/bigwig
Dec 3, 2013
f50b63f
Merge branch 'master' of github.com:jacktang/bigwig
Dec 3, 2013
f818152
add jiffy_ext module to handle term to json
Dec 3, 2013
974e5d9
#5107 add entop
Dec 3, 2013
5fa17b9
#5107 add entop
Dec 3, 2013
f449834
Merge branch 'master' of github.com:jacktang/bigwig
Dec 3, 2013
8d66079
Merge branch 'master' of github.com:jacktang/bigwig
Dec 3, 2013
399f793
#5151 add jst_ext encode
Dec 3, 2013
aef4bd1
#5151 add jst_ext encode
Dec 3, 2013
1c607d1
#5151
Dec 5, 2013
d83b148
#5151
Dec 5, 2013
6065676
jiffy_ext
Dec 5, 2013
81a7873
jiffy_ext
Dec 5, 2013
80bbe37
add jiffy_ext
Dec 5, 2013
c25e41c
add jiffy_ext
Dec 5, 2013
44ebea1
update jiffy repo
Dec 5, 2013
dc21a07
support R15B
Dec 9, 2013
db2299c
support R15B
Dec 9, 2013
8bc9926
Delete rebar.config
yuzhaoren Dec 9, 2013
467ffd9
add jsx beamspirit
Dec 9, 2013
ac9a5e4
d
Dec 9, 2013
7377811
d
Dec 9, 2013
441fe66
add jsx beamspirit
Dec 9, 2013
9e1601d
beamspirit
Dec 9, 2013
90db187
beamspirit
Dec 9, 2013
35f0295
rebar.config
Dec 9, 2013
c634cdc
Merge branch 'master' of github.com:jacktang/bigwig
Dec 9, 2013
063cd91
modify otp_vsn in rebar.config
Dec 9, 2013
232dba7
#5147 add entop
Dec 10, 2013
deea2d4
entop
Dec 11, 2013
d925df9
entop
Dec 11, 2013
68834fd
#5200
Dec 30, 2013
18eafe2
#5200
Dec 30, 2013
5e285a6
#5200
Dec 30, 2013
242d5ca
#5200
Dec 30, 2013
15f4ffc
#5200
Dec 31, 2013
31a1dae
#5200
Dec 31, 2013
762dcbe
#5200
Dec 31, 2013
2a73bcb
#5200
Dec 31, 2013
c4f6023
#5200
Jan 2, 2014
1a2bd03
#5200
Jan 2, 2014
dc8df8f
#5200
Jan 2, 2014
4bfea73
#5200
Jan 2, 2014
19f3f90
#5200
Jan 2, 2014
f4c8325
#5200
Jan 2, 2014
9d77b8d
#5200
Jan 2, 2014
42ad676
#5200
Jan 2, 2014
2c29a46
#5200
Jan 2, 2014
c7f8320
#5200
Jan 2, 2014
27da305
#5500
Jan 2, 2014
721bc91
#5200
Jan 2, 2014
3df95f8
#5200
Jan 2, 2014
1b652fd
#5200
Jan 3, 2014
63ad296
#5200
Jan 3, 2014
24c0517
#5200
Jan 3, 2014
27d747c
#5200
Jan 3, 2014
a0616da
#5200
Jan 3, 2014
49036b9
#5200
Jan 6, 2014
102ca4a
#5200
Jan 6, 2014
0cc0f53
#5216
Jan 8, 2014
77a0b4c
#5216
Jan 8, 2014
43cf777
#5216
Jan 8, 2014
4a2609a
#5216
Jan 8, 2014
6d15ece
#5216
Jan 9, 2014
99993de
#5216
Jan 9, 2014
697c469
#5216
Jan 10, 2014
2d50676
#5216
Jan 10, 2014
37ae7c9
#5216
Jan 10, 2014
8d45da2
#5216
Jan 10, 2014
7c1662d
#5216
Jan 10, 2014
8d06d15
#5216
Jan 10, 2014
81c3c5e
#5216
Jan 10, 2014
bea75da
#5216
Jan 10, 2014
e1c478e
#5216
Jan 13, 2014
e31356a
#5216
Jan 13, 2014
daaf6fd
#5216
Jan 14, 2014
18d6129
#5216
Jan 14, 2014
867322e
#5107
Jan 14, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions include/observer_backend.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@
%% $Id$
%%

-record(etop_info,
{now = {0, 0, 0},
n_procs = 0,
wall_clock = {0, 0},
runtime = {0, 0},
run_queue = 0,
alloc_areas = [],
memi = [{total, 0},
{processes, 0},
{ets, 0},
{atom, 0},
{code, 0},
{binary, 0}],
procinfo = []
}).
-record(etop_info, {
now = {0, 0, 0},
n_procs = 0,
wall_clock = {0, 0},
runtime = {0, 0},
run_queue = 0,
alloc_areas = [],
memi = [{total, 0},
{processes, 0},
{ets, 0},
{atom, 0},
{code, 0},
{binary, 0}],
procinfo = []
}).

-record(etop_proc_info,
{pid,
mem=0,
reds=0,
name,
runtime=0,
cf,
mq=0}).
-record(etop_proc_info, {
pid,
mem=0,
reds=0,
name,
runtime=0,
cf,
mq=0}).
68 changes: 60 additions & 8 deletions priv/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ <h1>BigWig</h1>
<li><a class="tool" href="reports">Reports</a></li>
<li><a class="tool" href="etop">Processes</a></li>
<li><a class="tool" href="appmon">Applications</a></li>
<li><a class="tool" href="lager">Lager Logging</a></li>
<li><a class="tool" href="entop">Entop</a></li>
<li><a class="tool" href="md">Md</a></li>
<li>
</ul>

<div id="nodestats">
Expand Down Expand Up @@ -71,15 +75,15 @@ <h1>BigWig</h1>
<strong>System Info</strong>
<dl>
<dt>Process Limit</dt>
<dd class="process_limit"></dd>
<dd id="glob_limit" class="process_limit"></dd>
<dt>Kernel Poll</dt>
<dd class="kernel_poll"></dd>
<dd id="glob_poll" class="kernel_poll"></dd>
<dt>Logical Processors</dt>
<dd class="logical_processors"></dd>
<dd id="glob_processors" class="logical_processors"></dd>
<dt>OTP Release</dt>
<dd class="otp_release"></dd>
<dd id="glob_release" class="otp_release"></dd>
<dt>Architecture</dt>
<dd class="system_architecture"></dd>
<dd id="glob_architecture" class="system_architecture"></dd>
</dl>
</div>
</div>
Expand Down Expand Up @@ -132,7 +136,53 @@ <h1>BigWig</h1>
</tbody>
</table>
</div>

<div id="entop" class="tool">
<div>
<input type="text" name="node" id="node" size="40"></input>
<button id="start_node">Start</button>
</div>
<table class="display" id="entop_table">
<thead>
<tr>
<th>Pid</th>
<th>Registered Name</th>
<th>Reductions</th>
<th>MQueue</th>
<th>HSize</th>
<th>SSize</th>
<th>HTot</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="md" class="tool">
<div id="md_title"></div>
<div id="md_statistic"></div>
<div id="counter"><input type="hidden" name="counter-value" value="0" /></div>
<div id="charts" style="width:80%; height:400px;"></div>
<div id="bandwidth" style="width:80%; height:400px;"></div>
</div>
<div id="lager" class="tool">
<div>
Tracer: <input type="text" name="tracer" id="tracer" size="80"></input>
<button id="start_trace">Trace</button>
<button id="del_trace">Stop</button>
<button id="clear_all_traces">Clear</button>
</div>
<div id="lager_status"></div>
<table class="display" id="log_table">
<div id ="trace_log"></div>
<thead>
<tr>
<th>trace</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="reports" class="tool">
<ul class="menu">
<li><a class="filter current" href="/rb">all</a></li>
Expand Down Expand Up @@ -166,14 +216,16 @@ <h1>BigWig</h1>
</ul>
</div>
</div>

<script type="text/javascript" src="/static/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.sparkline.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.dataTables.extra.js"></script>
<script type="text/javascript" src="/static/js/jquery.timers-1.2.js"></script>
<script type="text/javascript" src="/static/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/static/js/jit-2.0.1.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="/static/js/jquery.flipCounter.1.2.js"></script>
<script type="text/javascript" src="/static/js/highcharts.js"></script>
<script type="text/javascript" src="/static/js/date.js"></script>
<script type="text/javascript" src="/static/js/tpl.js"></script>
<script type="text/javascript" src="/static/js/renderer.js"></script>
Expand All @@ -182,6 +234,6 @@ <h1>BigWig</h1>
<script type="text/javascript" src="/static/js/stats.js"></script>
<script type="text/javascript" src="/static/js/appmon.js"></script>
<script type="text/javascript" src="/static/js/bigwig.js"></script>

<script type="text/javascript" src="/static/js/md_stat.js"></script>
</body>
</html>
Binary file added priv/images/flipCounter-medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
138 changes: 138 additions & 0 deletions priv/js/bigwig.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,142 @@ $(function() {
$('#dashboard').append($('<h1>Dashboard dump</h1>'));
$('#dashboard').append($('<pre class="dbdump">' + JSON.stringify(json, null, 4) + '</pre>'));
});
uStatus();
$('#start_trace').bind('click', function(event) {
var trace=$('#tracer').val();
var x = trace.split(":");
var tracer = '';
for(var i=0; i< x.length; ++i)
{
tracer = tracer + x[i] + ',';
}
tracer = tracer.substring(0,tracer.length-1);

var url = '/lager/tracer/'+tracer;

$.ajax({
url:url,
type:'PUT',
success: function(resp){
alert('Add tracer success');
uStatus();
}
})
});
$('#del_trace').bind('click', function(event) {
var trace=$('#tracer').val();
var x = trace.split(":");
var tracer = '';
for(var i=0; i< x.length; ++i)
{
tracer = tracer + x[i] + ',';
}
tracer = tracer.substring(0,tracer.length-1);

var url = '/lager/tracer/'+tracer;

$.ajax({
url:url,
type:'DELETE',
success: function(resp){
alert('Stop tracer success');
uStatus();
}
})
});
$('#clear_all_traces').bind('click', function(event) {
var url = '/lager/tracer/all';
$.ajax({
url:url,
type:'DELETE',
success: function(resp){
alert('Clear all traces success');
uStatus();
}
})
});
connect("/lager/stream");
});
function uStatus()
{
$.getJSON('/lager/status', function(json) {
$('#lager_status').html($('<h2>Lager Status</h2>'));
for(var i=0; i<json.ActiveTraces.length; ++i)
{
json.ActiveTraces[i]=($('<a class="tracer" href="#">' + json.ActiveTraces[i] + '</a>'))[0].outerHTML;
}
var jsonText=JSON.stringify(json, null, 4);
var result=jsonText.replace(/\\"/g,"\"");
var result1=result.replace(/ /g,"");
$('#lager_status').append($('<pre class="dbdump">' + result1 + '</pre>'));
});
};
function connect(to)
{
var host = document.location.host;
websocket = new WebSocket("ws://"+host+to);
websocket.onopen = function(evt) { onOpen(evt) };
websocket.onclose = function(evt) { onClose(evt) };
websocket.onmessage = function(evt) { onMessage(evt) };
};

function onOpen(evt) {
};
function onClose(evt) {
};
function onMessage(evt) {
var x = (evt.data).split(":\"");
var x1 = x[1].split(" ");
var x2 = "";
for(var i=4; i < x1.length; ++i)
{
x2 = x2+ x1[i];
}
$('#trace_dialog').append( $('<tr></tr>')
.append('<td>'+x1[0]+','+x1[1]+'</td>')
.append('<td> </td>')
.append('<td>'+x1[2]+'</td>')
.append('<td> </td>')
.append('<td>'+x1[3]+'</td>')
.append('<td> </td>')
.append('<td>'+x2+'</td>')
);
};
function sendTxt(txt) {
websocket.send(txt);
$('<div id="trace_dialog" class="trace_dialog"></div>')
.append( $('<tr></tr>')
.append('<td>'+"Time"+'</td>')
.append('<td> </td>')
.append('<td>'+"Node"+'</td>')
.append('<td> </td>')
.append('<td>'+"Level"+'</td>')
.append('<td> </td>')
.append('<td>'+"Message"+'</td>')
)
.dialog({
width: 750,
height: 500,
title: 'routingkey(' + txt + ') &nbsp; ',
close: function(event, ui) {
closeSubscribe();
//$(this).remove();
//window.location.reload();
// window.location.href="lager";
},
buttons: {
"Close": function() { $(this).dialog("close"); },
"Stop Trace": function() {}
},
})
};
function closeSubscribe(){
websocket.send('unsubscribe');
};
$("body").delegate("a.tracer", "click", function(e){
var x1 = $(this).text().split("<<");
var x2 =x1[1].split(">>");
var x3 = x2[0].replace(/\"/g, "");
sendTxt(x3);
e.preventDefault();
});
49 changes: 45 additions & 4 deletions priv/js/et.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,26 @@ $(document).ready(function() {
// Use our RENDERER to format everything
for(var i=0; i<json.aaData.length; ++i)
{
json.aaData[i][0] = RENDERER.render_json_val(json.aaData[i][0])[0].outerHTML;
json.aaData[i][1] = RENDERER.render_json_val(json.aaData[i][1])[0].outerHTML;
json.aaData[i][6] = RENDERER.render_json_val(json.aaData[i][6])[0].outerHTML;
//json.aaData[i][0] = RENDERER.render_json_val(json.aaData[i][0])[0].outerHTML;
//var Pid = (json.aaData[i][0]).data.replace(/[<>]/g, '');
//json.aaData[i][0] = ($('<a class="_pid" href="#">&lt;'+Pid+'&gt;</a>'))[0].outerHTML;
var Pid = json.aaData[i][0];
var Mfa = $('<a class="mfa" href="#">' + json.aaData[i][6] + '</a>');
var Name = $('<a class="mfa" href="#">' + json.aaData[i][1] + '</a>');

json.aaData[i][0]= ($('<a class="_pid" href="#">'+Pid+'</a>'))[0].outerHTML;
var Str = json.aaData[i][1];
if( Str.indexOf(":") == -1) {
json.aaData[i][1] = RENDERER.render_json_val(json.aaData[i][1])[0].outerHTML;
}
else {
json.aaData[i][1] = (Name)[0].outerHTML;
}

json.aaData[i][6] = (Mfa)[0].outerHTML;
}
var gs = ['node','clock','cpu','tot','bin','nprocs','procs','code','runqueue','atom','ets'];
var gs = ['node','clock','cpu','tot','bin','nprocs','procs','code','runqueue','atom','ets',
'limit','poll','processors','release','architecture'];
for (i = 0; i < gs.length; i++) {
var g = gs[i];
if (g in header) {
Expand All @@ -42,3 +57,29 @@ $(document).ready(function() {
}
});
});

$(document).ready(function() {
var oTable = $('#entop_table').dataTable({
"bProcessing": false,
"iDisplayLength": 25,
"sAjaxSource": '/entop',
"aaSorting": [[5, "desc"]],
// Get data piggy-backed on the main table and update the page
"fnServerData": function(sSource, aaData, fnCallback) {
$.getJSON( sSource, aaData, function(json) {
// Use our RENDERER to format everything
for(var i=0; i<json.aaData.length; ++i)
{
//json.aaData[i][0] = RENDERER.render_json_val(json.aaData[i][0])[0].outerHTML;
//var Pid = (json.aaData[i][0]).data.replace(/[<>]/g, '');
//json.aaData[i][0] = ($('<a class="_pid" href="#">&lt;'+Pid+'&gt;</a>'))[0].outerHTML;
var Pid = json.aaData[i][0];
json.aaData[i][0]= ($('<a class="_pid" href="#">'+Pid+'</a>'))[0].outerHTML;
json.aaData[i][1] = RENDERER.render_json_val(json.aaData[i][1])[0].outerHTML;
}
fnCallback(json);
});
}
});
$(document).everyTime(2000, "poll_etop", function() {oTable.fnReloadAjax();});
});
Loading