@glimt/record 0.0.60 → 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.
package/dist/record.js CHANGED
@@ -1989,15 +1989,18 @@ function serializeNodeWithId(n2, options) {
1989
1989
  debugging.store[n2.nodeName] = [];
1990
1990
  }
1991
1991
  debugging.store[n2.nodeName].push(took);
1992
- if (debugging.index % 1e3 === 0) {
1992
+ if (debugging.index % 5e3 === 0) {
1993
1993
  debugging.index = 0;
1994
1994
  const avgs = Object.entries(debugging.store).map(([key, values]) => {
1995
1995
  return {
1996
- key,
1997
- avg: values.reduce((a2, b) => a2 + b, 0) / values.length
1996
+ tagName: key,
1997
+ avg: values.reduce((a2, b) => a2 + b, 0) / values.length,
1998
+ max: Math.max(...values),
1999
+ min: Math.min(...values)
1998
2000
  };
1999
2001
  });
2000
- console.log("last 1000 avgs", JSON.parse(JSON.stringify(avgs)));
2002
+ console.log("last 5000 avgs");
2003
+ console.table(avgs);
2001
2004
  debugging.store = {};
2002
2005
  }
2003
2006
  return serializedNode;