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

feat: Implement MemoryUsage for Module #2200

Merged
merged 6 commits into from
Mar 23, 2021

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Mar 19, 2021

Description

This patch implements loupe::MemoryUsage for wasmer::Module.

This PR includes #2199. To review unique patches: https://github.com/Hywan/wasmer/compare/feat-memory-usage...feat-memory-usage-module?expand=1

Review

  • Add a short description of the the change to the CHANGELOG.md file

@Hywan Hywan force-pushed the feat-memory-usage-module branch 2 times, most recently from fd15636 to 553cfc7 Compare March 22, 2021 11:06
@Hywan Hywan changed the title WIP feat: Implement MemoryUsage for Module feat: Implement MemoryUsage for Module Mar 22, 2021
@Hywan Hywan requested a review from jubianchi as a code owner March 22, 2021 14:40
@Hywan
Copy link
Contributor Author

Hywan commented Mar 23, 2021

bors r+

bors bot added a commit that referenced this pull request Mar 23, 2021
2200: feat: Implement `MemoryUsage` for `Module` r=Hywan a=Hywan

# Description

This patch implements `loupe::MemoryUsage` for `wasmer::Module`.

~This PR includes #2199. To review unique patches: https://github.com/Hywan/wasmer/compare/feat-memory-usage...feat-memory-usage-module?expand=1~

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Ivan Enderlin <ivan@mnt.io>
@bors
Copy link
Contributor

bors bot commented Mar 23, 2021

Build failed:

`MemoryUsage` is implemented for `[T; N]` only on rustc
nightly. Wasmer uses the stable channel of rustc. Thus, we
re-implement `MemoryUsage` for `V128` by using `V128.as_slice()`.
@Hywan
Copy link
Contributor Author

Hywan commented Mar 23, 2021

bors r+

bors bot added a commit that referenced this pull request Mar 23, 2021
2200: feat: Implement `MemoryUsage` for `Module` r=Hywan a=Hywan

# Description

This patch implements `loupe::MemoryUsage` for `wasmer::Module`.

~This PR includes #2199. To review unique patches: https://github.com/Hywan/wasmer/compare/feat-memory-usage...feat-memory-usage-module?expand=1~

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Ivan Enderlin <ivan@mnt.io>
@bors
Copy link
Contributor

bors bot commented Mar 23, 2021

Build failed:

@Hywan
Copy link
Contributor Author

Hywan commented Mar 23, 2021

bors r-

@Hywan
Copy link
Contributor Author

Hywan commented Mar 23, 2021

bors r+

@bors bors bot merged commit 4026b3a into wasmerio:master Mar 23, 2021
bors bot added a commit that referenced this pull request Mar 23, 2021
2201: feat: Implement `MemoryUsage` for `Instance` r=Hywan a=Hywan

# Description

This patch implements `loupe::MemoryUsage` for `wasmer::Instance`.

~~This PR includes #2200. To review unique patches: https://github.com/Hywan/wasmer/compare/feat-memory-usage-module...feat-memory-usage-instance?expand=1~~

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Ivan Enderlin <ivan@mnt.io>
bors bot added a commit that referenced this pull request Mar 23, 2021
2201: feat: Implement `MemoryUsage` for `Instance` r=Hywan a=Hywan

# Description

This patch implements `loupe::MemoryUsage` for `wasmer::Instance`.

~~This PR includes #2200. To review unique patches: https://github.com/Hywan/wasmer/compare/feat-memory-usage-module...feat-memory-usage-instance?expand=1~~

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Ivan Enderlin <ivan@mnt.io>
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.

2 participants