MCPcopy
hub / github.com/microsoft/SandDance / getTable

Method getTable

docs/app/js/sanddance-app.js:54847–54858  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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));

Callers

nothing calls this directly

Calls 3

forEachMethod · 0.95
getAverageTimeMethod · 0.45
getHzMethod · 0.45

Tested by

no test coverage detected