()
| 54845 | for(const key in this.stats)fn(this.stats[key]); |
| 54846 | } |
| 54847 | getTable() { |
| 54848 | const table = {}; |
| 54849 | this.forEach((stat)=>{ |
| 54850 | table[stat.name] = { |
| 54851 | time: stat.time || 0, |
| 54852 | count: stat.count || 0, |
| 54853 | average: stat.getAverageTime() || 0, |
| 54854 | hz: stat.getHz() || 0 |
| 54855 | }; |
| 54856 | }); |
| 54857 | return table; |
| 54858 | } |
| 54859 | _initializeStats() { |
| 54860 | let stats = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; |
| 54861 | stats.forEach((stat)=>this._getOrCreate(stat)); |
nothing calls this directly
no test coverage detected