pub struct DashboardContext {Show 41 fields
pub title: String,
pub export_timestamp: String,
pub total_memory: String,
pub total_allocations: usize,
pub active_allocations: usize,
pub peak_memory: String,
pub thread_count: usize,
pub passport_count: usize,
pub leak_count: usize,
pub unsafe_count: usize,
pub ffi_count: usize,
pub allocations: Vec<AllocationInfo>,
pub relationships: Vec<RelationshipInfo>,
pub unsafe_reports: Vec<UnsafeReport>,
pub passport_details: Vec<PassportDetail>,
pub allocations_count: usize,
pub relationships_count: usize,
pub unsafe_reports_count: usize,
pub json_data: String,
pub os_name: String,
pub architecture: String,
pub cpu_cores: usize,
pub system_resources: SystemResources,
pub threads: Vec<ThreadInfo>,
pub async_tasks: Vec<AsyncTaskInfo>,
pub async_summary: AsyncSummary,
pub health_score: u32,
pub health_status: String,
pub safe_ops_count: usize,
pub high_risk_count: usize,
pub clean_passport_count: usize,
pub active_passport_count: usize,
pub leaked_passport_count: usize,
pub ffi_tracked_count: usize,
pub safe_code_percent: u32,
pub ownership_graph: OwnershipGraphInfo,
pub top_allocation_sites: Vec<TopAllocationSite>,
pub top_leaked_allocations: Vec<TopLeakedAllocation>,
pub top_temporary_churn: Vec<TopTemporaryChurn>,
pub circular_references: CircularReferenceReport,
pub task_graph_json: String,
}Expand description
Dashboard context for template rendering
Fields§
§title: StringPage title
export_timestamp: StringExport timestamp
total_memory: StringTotal memory allocated (formatted)
total_allocations: usizeTotal number of allocations
active_allocations: usizeNumber of active allocations
peak_memory: StringPeak memory usage (formatted)
thread_count: usizeNumber of threads
passport_count: usizeNumber of memory passports
leak_count: usizeNumber of memory leaks detected
unsafe_count: usizeNumber of unsafe operations
ffi_count: usizeNumber of FFI operations
allocations: Vec<AllocationInfo>Allocation information
relationships: Vec<RelationshipInfo>Variable relationships
unsafe_reports: Vec<UnsafeReport>Unsafe/FFI reports
passport_details: Vec<PassportDetail>Detailed passport information
allocations_count: usizeCount helper for template
relationships_count: usizeCount helper for template
unsafe_reports_count: usizeCount helper for template
json_data: StringJSON data string for injection (performance optimization)
os_name: StringOS name
architecture: StringArchitecture
cpu_cores: usizeCPU cores
system_resources: SystemResourcesSystem resources
threads: Vec<ThreadInfo>Thread analysis data
async_tasks: Vec<AsyncTaskInfo>Async task analysis data
async_summary: AsyncSummaryAsync summary
health_score: u32Health score (0-100)
health_status: StringHealth status text
safe_ops_count: usizeSafe operations count
high_risk_count: usizeHigh risk issues count
clean_passport_count: usizeClean passports count
active_passport_count: usizeActive passports count
leaked_passport_count: usizeLeaked passports count
ffi_tracked_count: usizeFFI tracked passports count
safe_code_percent: u32Safe code percentage
ownership_graph: OwnershipGraphInfoOwnership graph information
top_allocation_sites: Vec<TopAllocationSite>Top N allocation sites
top_leaked_allocations: Vec<TopLeakedAllocation>Top N leaked allocations
top_temporary_churn: Vec<TopTemporaryChurn>Top N temporary churn (short-lived allocations)
circular_references: CircularReferenceReportCircular reference analysis
task_graph_json: StringTask graph JSON string
Trait Implementations§
Source§impl Clone for DashboardContext
impl Clone for DashboardContext
Source§fn clone(&self) -> DashboardContext
fn clone(&self) -> DashboardContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DashboardContext
impl Debug for DashboardContext
Source§impl<'de> Deserialize<'de> for DashboardContext
impl<'de> Deserialize<'de> for DashboardContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for DashboardContext
impl RefUnwindSafe for DashboardContext
impl Send for DashboardContext
impl Sync for DashboardContext
impl Unpin for DashboardContext
impl UnsafeUnpin for DashboardContext
impl UnwindSafe for DashboardContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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