pub struct ResidencyPlanner;Expand description
Analysis-only residency planner. Computes live ranges and peak
bytes for a graph, emits a ResidencyReport. Does not mutate
the graph. Takes &Graph — the caller holds whatever lock it
already has; no hidden lock acquisition.
Implementations§
Source§impl ResidencyPlanner
impl ResidencyPlanner
Sourcepub fn analyze(g: &Graph, roots: &[NodeId]) -> ResidencyReport
pub fn analyze(g: &Graph, roots: &[NodeId]) -> ResidencyReport
Run the analysis. O(V + E) in the reachable subgraph.
Auto Trait Implementations§
impl Freeze for ResidencyPlanner
impl RefUnwindSafe for ResidencyPlanner
impl Send for ResidencyPlanner
impl Sync for ResidencyPlanner
impl Unpin for ResidencyPlanner
impl UnsafeUnpin for ResidencyPlanner
impl UnwindSafe for ResidencyPlanner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more