Skip to content

Commit

Permalink
improve dbMon implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Oct 21, 2017
1 parent 04482ef commit f2b68c7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions benchmarks/dbmon/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ perfMonitor.startFPSMonitor();
perfMonitor.startMemMonitor();
perfMonitor.initProfiler("render");

function run() {
app.set("databases", ENV.generateData().toArray());
var run = function() {
perfMonitor.startProfile("render");
Moon.nextTick(function() {
perfMonitor.endProfile("render");
renderRate.ping();
});
app.set("databases", ENV.generateData().toArray());
perfMonitor.endProfile("render");
renderRate.ping();
setTimeout(run, ENV.timeout);
}

Expand Down

0 comments on commit f2b68c7

Please sign in to comment.