question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose memory.grow, memory.size, memory.dataLength

See original GitHub issue

Goal

Unblock work for a full-blown allocator.

Overview

memory_grow are not available through walt, but can be implemented as members of the Memory and Table types.

Acceptance Criteria

This should work

const memory : Memory = { initial: 1 };

function test() {
  memory.size();
  memory.grow();
  memory.dataSize();
}
  • Memory.grow()
  • Memory.size() current size of memory
  • Memory.dataSize length of the data section, always zero until data senction encoding is implemented.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ballercatcommented, Oct 6, 2018

Implemented by #148

1reaction
poeticAndroidcommented, Jul 30, 2018

this would be nice 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sizing NameNode Heap Memory | 6.3.x
Monitoring Heap Memory Usage. You can monitor your heap memory usage several ways: Cloudera Manager: Look at the NameNode chart for heap ...
Read more >
Understanding Garbage Collection and Hunting Memory ...
A look into how Node.js manages memory with garbage collection.
Read more >
How To Write Fast, Memory-Efficient JavaScript
Growing As You Go Don't pre-allocate large arrays (i.e. greater than 64K elements) to their maximum size, instead grow as you go. Before...
Read more >
CS 225 | Stack and Heap Memory
When a new local variables is declared, more stack memory is allocated for that function to store the variable. Such allocations make the...
Read more >
What and where are the stack and heap?
The size of the heap is set on application startup, but can grow as space is needed (the allocator requests more memory from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found