Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Function to get v8 heap information #8261

Open
4 tasks
andreespirela opened this issue Nov 6, 2020 · 1 comment
Open
4 tasks

[Suggestion] Function to get v8 heap information #8261

andreespirela opened this issue Nov 6, 2020 · 1 comment
Labels
debugger Chrome DevTools inspector/debugger integration suggestion suggestions for new features (yet to be agreed)

Comments

@andreespirela
Copy link

The suggestion is to get the heap information from v8, this would behave slightly similar to NodeJS api. https://nodejs.org/api/v8.html#v8_v8_getheapsnapshot .

It would be good to have

  • Deno.getHeapSpaceStatistics()
  • Deno.getHeapSnapshot()
  • Deno.getHeapStatistics()
  • Deno.getHeapCodeStatistics()

Ideally, for now, it would be very useful to have: Deno.getHeapSnapshot

Optionally, you could put the 4 mentioned API's together in a v8 object such as Deno.v8 : Deno.v8.getHeapSpaceStatistics

@andreespirela andreespirela changed the title [Suggestion] Function to get heap information [Suggestion] Function to get v8 heap information Nov 6, 2020
@kitsonk kitsonk added debug 🧯 suggestion suggestions for new features (yet to be agreed) labels Nov 6, 2020
@kitsonk
Copy link
Contributor

kitsonk commented Nov 6, 2020

Related #1569

@bartlomieju bartlomieju added debugger Chrome DevTools inspector/debugger integration and removed debug labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger Chrome DevTools inspector/debugger integration suggestion suggestions for new features (yet to be agreed)
Projects
None yet
Development

No branches or pull requests

3 participants