This commit is contained in:
rsc 2007-04-21 21:27:51 +00:00
parent 6932098c9f
commit d392fc771e

View file

@ -1,114 +1,114 @@
biggraph = "rpctotal/diff" biggraph = "arg=rpctotal&graph=diff"
graphname = new Array( graphname = new Array(
"*/diskbw", "arg=*&graph=diskbw",
"<b>disk</b> bytes/second", "<b>disk</b> bytes/second",
"*/netbw", "arg=*&graph=netbw",
"<b>network</b> bytes/second", "<b>network</b> bytes/second",
"*/iobw", "arg=*&graph=iobw",
"total: <b>disk+net</b> bytes/second", "total: <b>disk+net</b> bytes/second",
"apartreadbyte/diff", "arg=apartreadbyte&graph=diff",
"arena read bytes/second", "arena read bytes/second",
"apartwritebyte/diff", "arg=apartwritebyte&graph=diff",
"arena write bytes/second", "arena write bytes/second",
"bloomfalsemiss/pctdiff=bloomlookup", "arg=bloomfalsemiss&graph=pctdiff&arg2=bloomlookup&max=100",
"bloom false hit %", "bloom false hit %",
"bloomhit/pctdiff=bloomlookup", "arg=bloomhit&graph=pctdiff&arg2=bloomlookup&max=100",
"bloom miss %", "bloom miss %",
"bloomlookuptime/divdiff=bloomlookup", "arg=bloomlookuptime&graph=divdiff&arg2=bloomlookup",
"bloom lookup time", "bloom lookup time",
"bloomones/pct=bloombits", "arg=bloomones&graph=pct&arg2=bloombits&max=100",
"bloom usage %", "bloom usage %",
"dcachedirty/pct=dcachesize", "arg=dcachedirty&graph=pct&arg2=dcachesize&max=100",
"dcache dirty %", "dcache dirty %",
"dcachehit/pctdiff=dcachelookup", "arg=dcachehit&graph=pctdiff&arg2=dcachelookup&max=100",
"dcache hit %", "dcache hit %",
"dcachelookuptime/divdiff=dcachelookup", "arg=dcachelookuptime&graph=divdiff&arg2=dcachelookup",
"dcache lookup time", "dcache lookup time",
"dcachelookup/diff", "arg=dcachelookup&graph=diff",
"dcache lookups/second", "dcache lookups/second",
"dcachewrite/diff", "arg=dcachewrite&graph=diff",
"dcache writes/second", "dcache writes/second",
"icachedirty/pct=icachesize", "arg=icachedirty&graph=pct&arg2=icachesize&max=100",
"icache dirty %", "icache dirty %",
"icachehit/pctdiff=icachelookup", "arg=icachehit&graph=pctdiff&arg2=icachelookup&max=100",
"icache hit %", "icache hit %",
"icachelookuptime/divdiff=icachelookup", "arg=icachelookuptime&graph=divdiff&arg2=icachelookup",
"icache lookup time", "icache lookup time",
"icacheprefetch/diff", "arg=icacheprefetch&graph=diff",
"icache prefetches/second", "icache prefetches/second",
"icachewrite/diff", "arg=icachewrite&graph=diff",
"icache writes/second", "icache writes/second",
"isectreadbyte/diff", "arg=isectreadbyte&graph=diff",
"isect read bytes/second", "isect read bytes/second",
"isectwritebyte/diff", "arg=isectwritebyte&graph=diff",
"isect write bytes/second", "isect write bytes/second",
"lcachehit/pctdiff=lcachelookup", "arg=lcachehit&graph=pctdiff&arg2=lcachelookup&max=100",
"lump cache hit %", "lump cache hit %",
"lcachelookuptime/divdiff=lcachelookup", "arg=lcachelookuptime&graph=divdiff&arg2=lcachelookup",
"lump cache lookup time", "lump cache lookup time",
"lcachewrite/diff", "arg=lcachewrite&graph=diff",
"lcache writes/second", "lcache writes/second",
"rpcreadbyte/diff", "arg=rpcreadbyte&graph=diff",
"read RPC bytes/second", "read RPC bytes/second",
"rpctotal/diff", "arg=rpctotal&graph=diff",
"RPCs/second", "RPCs/second",
"rpcwritebyte/diff", "arg=rpcwritebyte&graph=diff",
"write RPC bytes/second", "write RPC bytes/second",
"rpcreadtime/divdiff=rpcread", "arg=rpcreadtime&graph=divdiff&arg2=rpcread",
"read RPC time", "read RPC time",
"rpcwritetime/divdiff=rpcwrite", "arg=rpcwritetime&graph=divdiff&arg2=rpcwrite",
"write RPC time", "write RPC time",
"rpcreadcachedtime/divdiff=rpcreadcached", "arg=rpcreadcachedtime&graph=divdiff&arg2=rpcreadcached",
"cached read RPC time", "cached read RPC time",
"rpcreaduncachedtime/divdiff=rpcreaduncached", "arg=rpcreaduncachedtime&graph=divdiff&arg2=rpcreaduncached",
"uncached read RPC time", "uncached read RPC time",
"rpcwritenewtime/divdiff=rpcwritenew", "arg=rpcwritenewtime&graph=divdiff&arg2=rpcwritenew",
"fresh write RPC time", "fresh write RPC time",
"rpcwriteoldtime/divdiff=rpcwriteold", "arg=rpcwriteoldtime&graph=divdiff&arg2=rpcwriteold",
"dup write RPC time", "dup write RPC time",
"sumreadbyte/diff", "arg=sumreadbyte&graph=diff",
"checksum bytes/second", "checksum bytes/second",
"dblockstall", "arg=dblockstall",
"threads stalled: dblock", "threads stalled: dblock",
"dcachestall", "arg=dcachestall",
"threads stalled: dcache", "threads stalled: dcache",
"icachestall", "arg=icachestall",
"threads stalled: icache", "threads stalled: icache",
"lumpstall", "arg=lumpstall",
"threads stalled: lump", "threads stalled: lump",
"END" "arg=END"
) )
column0 = new Array( column0 = new Array(
"column0", "column0",
"!bandwidth", "!bandwidth",
"*/iobw", "arg=*&graph=iobw",
"*/netbw", "arg=*&graph=netbw",
"rpcreadbyte/diff", "arg=rpcreadbyte&graph=diff",
"rpcwritebyte/diff", "arg=rpcwritebyte&graph=diff",
"*/diskbw", "arg=*&graph=diskbw",
"isectreadbyte/diff", "arg=isectreadbyte&graph=diff",
"isectwritebyte/diff", "arg=isectwritebyte&graph=diff",
"apartreadbyte/diff", "arg=apartreadbyte&graph=diff",
"apartwritebyte/diff", "arg=apartwritebyte&graph=diff",
"sumreadbyte/diff", "arg=sumreadbyte&graph=diff",
"!bloom filter", "!bloom filter",
"bloomhit/pctdiff=bloomlookup", "arg=bloomhit&graph=pctdiff&arg2=bloomlookup&max=100",
"bloomfalsemiss/pctdiff=bloomlookup", "arg=bloomfalsemiss&graph=pctdiff&arg2=bloomlookup&max=100",
"bloomones/pct=bloombits", "arg=bloomones&graph=pct&arg2=bloombits&max=100",
"END" "END"
) )
@ -116,20 +116,20 @@ column0 = new Array(
column1 = new Array( column1 = new Array(
"column1", "column1",
"!icache", "!icache",
"icachedirty/pct=icachesize", "arg=icachedirty&graph=pct&arg2=icachesize&max=100",
"icachehit/pctdiff=icachelookup", "arg=icachehit&graph=pctdiff&arg2=icachelookup&max=100",
"icachewrite/diff", "arg=icachewrite&graph=diff",
"icacheprefetch/diff", "arg=icacheprefetch&graph=diff",
"!dcache", "!dcache",
"dcachedirty/pct=dcachesize", "arg=dcachedirty&graph=pct&arg2=dcachesize&max=100",
"dcachehit/pctdiff=dcachelookup", "arg=dcachehit&graph=pctdiff&arg2=dcachelookup&max=100",
"dcachelookup/diff", "arg=dcachelookup&graph=diff",
"dcachewrite/diff", "arg=dcachewrite&graph=diff",
"!lump cache", "!lump cache",
"lcachehit/pctdiff=lcachelookup", "arg=lcachehit&graph=pctdiff&arg2=lcachelookup&max=100",
"lcachewrite/diff", "arg=lcachewrite&graph=diff",
"END" "END"
) )
@ -138,25 +138,24 @@ column2 = new Array(
"column2", "column2",
"!stalls", "!stalls",
"icachestall", "arg=icachestall",
"dcachestall", "arg=dcachestall",
"dblockstall", "arg=dblockstall",
"lumpstall", "arg=lumpstall",
"!timings", "!timings",
"bloomlookuptime/divdiff=bloomlookup", "arg=bloomlookuptime&graph=divdiff&arg2=bloomlookup",
"icachelookuptime/divdiff=icachelookup", "arg=icachelookuptime&graph=divdiff&arg2=icachelookup",
"lcachelookuptime/divdiff=lcachelookup", "arg=lcachelookuptime&graph=divdiff&arg2=lcachelookup",
"dcachelookuptime/divdiff=dcachelookup", "arg=dcachelookuptime&graph=divdiff&arg2=dcachelookup",
"rpcreadtime/divdiff=rpcread", "arg=rpcreadtime&graph=divdiff&arg2=rpcread",
"rpcwritetime/divdiff=rpcwrite", "arg=rpcwritetime&graph=divdiff&arg2=rpcwrite",
"rpcreadcachedtime/divdiff=rpcreadcached", "arg=rpcreadcachedtime&graph=divdiff&arg2=rpcreadcached",
"rpcreaduncachedtime/divdiff=rpcreaduncached", "arg=rpcreaduncachedtime&graph=divdiff&arg2=rpcreaduncached",
"rpcwritenewtime/divdiff=rpcwritenew", "arg=rpcwritenewtime&graph=divdiff&arg2=rpcwritenew",
"rpcwriteoldtime/divdiff=rpcwriteold", "arg=rpcwriteoldtime&graph=divdiff&arg2=rpcwriteold",
"END" "END"
) )
col0info = new Array(column0.length) col0info = new Array(column0.length)
@ -196,12 +195,12 @@ function textofname(name)
} }
function graphrow(row, span, name, dt, wid, ht, fill, text) { function graphrow(row, span, name, dt, wid, ht, fill, text) {
var url = "/graph/"+name var url = "/graph?"+name
url = url+"/min=0" url = url+"&min=0"
url = url+"/t0=-"+dt url = url+"&t0=-"+dt
url = url+"/wid="+wid url = url+"&wid="+wid
url = url+"/ht="+ht url = url+"&ht="+ht
url = url+"/fill="+fill url = url+"&fill="+fill
var s = "<td colSpan="+span var s = "<td colSpan="+span
s = s+" valign=bottom" s = s+" valign=bottom"
@ -234,9 +233,7 @@ function redrawgraphs() {
t.insertRow(i) t.insertRow(i)
graphrow(t.rows[0], 3, biggraph, 86400, 900, 30, 0, " &ndash; showing 24 hours") graphrow(t.rows[0], 3, biggraph, 86400, 900, 30, 0, " &ndash; showing 24 hours")
debug("t.rows.length="+t.rows.length)
graphrow(t.rows[1], 3, biggraph, 3600, 900, 30, 1, " &ndash; showing 1 hour") graphrow(t.rows[1], 3, biggraph, 3600, 900, 30, 1, " &ndash; showing 1 hour")
debug("t.rows.length="+t.rows.length)
t.rows[2].innerHTML = "<td height=10></td>" t.rows[2].innerHTML = "<td height=10></td>"
var r = t.rows[3] var r = t.rows[3]
@ -308,7 +305,7 @@ function scrolltop() {
function columnclick(e) { function columnclick(e) {
if(e.which && e.which != 1) if(e.which && e.which != 1)
return return;
var g = findgraph(scrollleft()+e.clientX, scrolltop()+e.clientY) var g = findgraph(scrollleft()+e.clientX, scrolltop()+e.clientY)
if(g && g.name.substring(0,1) != "!"){ if(g && g.name.substring(0,1) != "!"){
biggraph = g.name biggraph = g.name
@ -335,9 +332,10 @@ function findgraphin(x, y, tname, info) {
if(x < xpos(t)) if(x < xpos(t))
return return
y = y - ypos(t) y = y - ypos(t)
for(var i=info.length-2; i>=1; i--) for(var i=info.length-2; i>=1; i--){
if(y > info[i].y) if(y > info[i].y)
return info[i] return info[i]
}
return return
} }