@glimt/record 0.0.61 → 0.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2024,17 +2024,18 @@ function serializeNodeWithId(n2, options) {
2024
2024
  debugging.store[n2.nodeName] = [];
2025
2025
  }
2026
2026
  debugging.store[n2.nodeName].push(took);
2027
- if (debugging.index % 1e3 === 0) {
2027
+ if (debugging.index % 5e3 === 0) {
2028
2028
  debugging.index = 0;
2029
2029
  const avgs = Object.entries(debugging.store).map(([key, values]) => {
2030
2030
  return {
2031
- key,
2031
+ tagName: key,
2032
2032
  avg: values.reduce((a2, b) => a2 + b, 0) / values.length,
2033
2033
  max: Math.max(...values),
2034
2034
  min: Math.min(...values)
2035
2035
  };
2036
2036
  });
2037
- console.log("last 1000 avgs", JSON.parse(JSON.stringify(avgs)));
2037
+ console.log("last 5000 avgs");
2038
+ console.table(avgs);
2038
2039
  debugging.store = {};
2039
2040
  }
2040
2041
  return serializedNode;