feat: Start implementing loupe::MemoryUsage on wasmer::Module.

This commit is contained in:
Ivan Enderlin
2021-03-23 11:23:32 +01:00
parent af59fcbf22
commit 44dc884260
39 changed files with 197 additions and 64 deletions

View File

@@ -56,12 +56,13 @@ pub use crate::vmcontext::{
VMTableImport, VMTrampoline,
};
pub use crate::vmoffsets::{TargetSharedSignatureIndex, VMOffsets};
use loupe_derive::MemoryUsage;
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
/// A safe wrapper around `VMFunctionBody`.
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, MemoryUsage)]
#[repr(transparent)]
pub struct FunctionBodyPtr(pub *const VMFunctionBody);