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

This commit is contained in:
Ivan Enderlin
2021-03-15 20:28:07 +01:00
parent 8335e2319c
commit 026520998c
43 changed files with 225 additions and 74 deletions

View File

@ -7,6 +7,7 @@ use crate::codegen_x64::{
CodegenError, FuncGen,
};
use crate::config::Singlepass;
use loupe_derive::MemoryUsage;
use rayon::prelude::{IntoParallelIterator, IntoParallelRefIterator, ParallelIterator};
use std::sync::Arc;
use wasmer_compiler::TrapInformation;
@ -22,6 +23,7 @@ use wasmer_vm::{ModuleInfo, TrapCode, VMOffsets};
/// A compiler that compiles a WebAssembly module with Singlepass.
/// It does the compilation in one pass
#[derive(MemoryUsage)]
pub struct SinglepassCompiler {
config: Singlepass,
}