function enableProfiling(boolflag) {
    profiling_enabled = boolflag;
    var mon_func = boolflag ? monitoring.enable : monitoring.disable;
    mon_func.call(monitoring, 'profiling');
    // Braodcast the profiling change to keep all clients updated.
    io.emit('status', JSON.stringify({profiling_enabled: profiling_enabled}));
    // TODO - Emit an event to say profiling is on or off!
  }
/*
   * Support enabling/disabling profiling data
   */
Support enabling/disabling profiling data
Support enabling / disabling profiling data
function enableProfiling(boolflag) {
    profiling_enabled = boolflag;
    var mon_func = boolflag ? monitoring.enable : monitoring.disable;
    mon_func.call(monitoring, 'profiling');
    io.emit('status', JSON.stringify({profiling_enabled: profiling_enabled}));
  }
function enableProfiling ( boolflag ) { profiling_enabled = boolflag ; var mon_func = boolflag ? monitoring . enable : monitoring . disable ; mon_func . call ( monitoring , 'profiling' ) ; io . emit ( 'status' , JSON . stringify ( { profiling_enabled : profiling_enabled } ) ) ; }
Support enabling/disabling profiling data
Support enabling / disabling profiling data
// Braodcast the profiling change to keep all clients updated. // TODO - Emit an event to say profiling is on or off!