src/aria/utils/Profiling.js
function (name, reason) {
            if (!this._counterSplits[name]) {
                return 0;
            }

            var total = 0;
            for (var i = 0, len = this._counterSplits[name].length; i < len; i += 1) {
                total += this._counterSplits[name][i].value;
            }

            return total / len;
        }
function (name, reason) {
            if (!this._counterSplits[name]) {
                return 0;
            }

            var total = 0;
            for (var i = 0, len = this._counterSplits[name].length; i < len; i += 1) {
                total += this._counterSplits[name][i].value;
            }

            return total / len;
        }
function ( name , reason ) { if ( ! this . _counterSplits [ name ] ) { return 0 ; } var total = 0 ; for ( var i = 0 , len = this . _counterSplits [ name ] . length ; i < len ; i += 1 ) { total += this . _counterSplits [ name ] [ i ] . value ; } return total / len ; }
Get the average value of the splits on a given counter. The current value of the counter is not taken into
account. If needed call a resetCounter before this method
@param {String} name Name of the counter
@param {String} reason Filter only the splits with this reason value
@return {Number}
Get the average value of the splits on a given counter . The current value of the counter is not taken into account . If needed call a resetCounter before this method