From 14e154c511d693fbf864e84e3c8a38a253b5f7d4 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 19 Feb 2014 16:47:59 -0500 Subject: [PATCH] Add instrumentation for time taken to walk nodes. --- tools/htdocs/mkws.js | 3 +++ 1 file changed, 3 insertions(+) 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, -- 1.7.10.4