mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
Decommit instance memory after a runtime call on Linux (#8998)
* Decommit instance memory after a runtime call on Linux * Update documentation for the test * Remove unfinished comment * Use saturating_sub. Also update the doc comment. * Precise RSS tracking in the test Instead of tracking RSS for the whole process we just look at the particular mapping that is associated with the linear memory of the runtime instance * Remove unused import * Fix unused imports * Fix the unused imports error for good * Rollback an accidental change to benches * Fix the test * Remove now unneeded code
This commit is contained in:
@@ -93,4 +93,13 @@ pub trait WasmInstance: Send {
|
||||
///
|
||||
/// This method is only suitable for getting immutable globals.
|
||||
fn get_global_const(&self, name: &str) -> Result<Option<Value>, Error>;
|
||||
|
||||
/// **Testing Only**. This function returns the base address of the linear memory.
|
||||
///
|
||||
/// This is meant to be the starting address of the memory mapped area for the linear memory.
|
||||
///
|
||||
/// This function is intended only for a specific test that measures physical memory consumption.
|
||||
fn linear_memory_base_ptr(&self) -> Option<*const u8> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user