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

            if (!this._counterSplits[name]) {
                this._counterSplits[name] = [];
            }

            this._counterSplits[name].push({
                value : this._counters[name],
                reason : reason
            });

            this._counters[name] = 0;
        }
function (name, reason) {
            if (!this._counters[name]) {
                return;
            }

            if (!this._counterSplits[name]) {
                this._counterSplits[name] = [];
            }

            this._counterSplits[name].push({
                value : this._counters[name],
                reason : reason
            });

            this._counters[name] = 0;
        }
function ( name , reason ) { if ( ! this . _counters [ name ] ) { return ; } if ( ! this . _counterSplits [ name ] ) { this . _counterSplits [ name ] = [ ] ; } this . _counterSplits [ name ] . push ( { value : this . _counters [ name ] , reason : reason } ) ; this . _counters [ name ] = 0 ; }
Reset a counter with a given name to 0. The last value is saved as a split.
@param {String} name Name of the counter
@param {String} reason Additional information on the split, it is useful for computing averages
Reset a counter with a given name to 0 . The last value is saved as a split .