Skip to content

Conversation

@bjlaub
Copy link

@bjlaub bjlaub commented Jun 6, 2024

Particularly dense flamegraphs may fail with a RangeError: Maximum call stack size exceeded on this code path. Instead, compute the maxDepth by iterating descendants in a loop.

Fixes #106

Particularly dense flamegraphs may fail with a `RangeError: Maximum call
stack size exceeded` on this code path. Instead, compute the maxDepth by
iterating descendants in a loop.
@Badrchanaa
Copy link

Doesn't seem like Array.map is the problem but Math.max.apply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

maximum call stack size exceeded error with large number of nodes

2 participants