code: function saveDataPoint(name, duration){
  
          //get the function data
          var functionData /*:Object*/ = report[name];
          
          //just in case clear() was called
          if (!functionData){
              functionData = createReport(name);
          }
      
          //increment the calls
          functionData.calls++;
          functionData.points.push(duration);
  
          //if it's already been called at least once, do more complex calculations
          if (functionData.calls > 1) {
              functionData.avg = ((functionData.avg*(functionData.calls-1))+duration)/functionData.calls;
              functionData.min = Math.min(functionData.min, duration);
              functionData.max = Math.max(functionData.max, duration);
          } else {
              functionData.avg = duration;
              functionData.min = duration;
              functionData.max = duration;
          }                             
      
      }
docs: Called when a method ends execution. Marks the start and end time of the
  method so it can calculate how long the function took to execute. Also
  updates min/max/avg calculations for the function.
  @param {String} name The name of the function to mark as stopped.
  @param {int} duration The number of milliseconds it took the function to
  execute.
  @return {Void}
  @method saveDataPoint
  @private
  @static