From: Mike Taylor Date: Wed, 19 Feb 2014 21:47:59 +0000 (-0500) Subject: Add instrumentation for time taken to walk nodes. X-Git-Tag: 1.0.0~1407 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=14e154c511d693fbf864e84e3c8a38a253b5f7d4 Add instrumentation for time taken to walk nodes. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 1d0b793..b844b58 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -1401,6 +1401,7 @@ function team($, teamName) { // Find all nodes with an class, and determine their team from // the mkwsTeam_* class. Make all team objects. + var then = $.now(); $('[class^="mkws"],[class*=" mkws"]').each(function () { var node = this; mkws.handle_node_with_team(node, function(tname) { @@ -1410,6 +1411,8 @@ function team($, teamName) { } }); }); + var now = $.now(); + debug("Walking MKWS nodes took " + (now-then) + " ms"); if (mkws_config.use_service_proxy) { authenticate_session(mkws_config.service_proxy_auth,