mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 05:38:19 +00:00
feat: Start implementing loupe::MemoryUsage on wasmer::Module.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user