Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add more performance metrics

  • Loading branch information...
commit 401319f10c6f6397955099698e7e8c071e5d2f53 1 parent 30fd055
@kriszyp authored
Showing with 20 additions and 2 deletions.
  1. +7 −1 test/performance.html
  2. +13 −1 test/performance_dojox_datagrid.html
View
8 test/performance.html
@@ -50,7 +50,13 @@
store: testPerfStore,
columns: columns
}, "grid");
- console.log(new Date().getTime() - start);
+ console.log("startup time", new Date().getTime() - start);
+ var processScroll = grid._processScroll;
+ grid._processScroll = function(){
+ var start = new Date().getTime();
+ processScroll.call(this);
+ console.log("scroll time", new Date().getTime() - start);
+ };
});
</script>
View
14 test/performance_dojox_datagrid.html
@@ -52,7 +52,19 @@
store: store
},"grid");
grid.startup();
- console.log(new Date().getTime() - start);
+ console.log("startup time", new Date().getTime() - start);
+ var fetch = grid._fetch;
+ grid._fetch = function(){
+ var start = new Date().getTime();
+ fetch.apply(this, arguments);
+ console.log("fetch time", new Date().getTime() - start);
+ };
+ var finishScrollJob = grid.finishScrollJob;
+ grid.finishScrollJob = function(){
+ var start = new Date().getTime();
+ finishScrollJob.call(this);
+ console.log("finishScrollJob time", new Date().getTime() - start);
+ };
});
</script>
</head>
Please sign in to comment.
Something went wrong with that request. Please try again.