Struct bytecode::usage_analysis::MemoryUsage
source · pub struct MemoryUsage {
pub direct: SetDomain<QualifiedInstId<StructId>>,
pub transitive: SetDomain<QualifiedInstId<StructId>>,
pub all: SetDomain<QualifiedInstId<StructId>>,
}
Expand description
A summary of the memory accessed / modified per function, both directly and transitively.
Fields§
§direct: SetDomain<QualifiedInstId<StructId>>
§transitive: SetDomain<QualifiedInstId<StructId>>
§all: SetDomain<QualifiedInstId<StructId>>
Implementations§
source§impl MemoryUsage
impl MemoryUsage
pub fn get_direct_inst( &self, inst: &[Type] ) -> BTreeSet<QualifiedInstId<StructId>>
pub fn get_transitive_inst( &self, inst: &[Type] ) -> BTreeSet<QualifiedInstId<StructId>>
pub fn get_all_inst(&self, inst: &[Type]) -> BTreeSet<QualifiedInstId<StructId>>
pub fn get_direct_uninst(&self) -> BTreeSet<QualifiedId<StructId>>
pub fn get_transitive_uninst(&self) -> BTreeSet<QualifiedId<StructId>>
pub fn get_all_uninst(&self) -> BTreeSet<QualifiedId<StructId>>
Trait Implementations§
source§impl AbstractDomain for MemoryUsage
impl AbstractDomain for MemoryUsage
fn join(&mut self, other: &Self) -> JoinResult
source§impl Clone for MemoryUsage
impl Clone for MemoryUsage
source§fn clone(&self) -> MemoryUsage
fn clone(&self) -> MemoryUsage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for MemoryUsage
impl Default for MemoryUsage
source§fn default() -> MemoryUsage
fn default() -> MemoryUsage
Returns the “default value” for a type. Read more