Expand description
Closure capture analysis for memscope
This module provides detailed analysis of closure captures, including:
- Variable capture modes (by value, by reference, by mutable reference)
- Lifetime tracking of captured variables
- Memory impact analysis of closures
- Optimization suggestions for closure usage
Structs§
- Capture
Event - Capture event tracking
- Capture
Info - Information about a captured variable
- Capture
Statistics - Capture statistics
- Closure
Analysis Report - Comprehensive closure analysis report
- Closure
Analyzer - Advanced closure capture analysis
- Closure
Footprint - Closure memory footprint analysis
- Closure
Info - Information about a closure
- Creation
Context - Creation context for closures
- Detected
Closure - Detected closure in allocation analysis
- Lifetime
Analysis - Lifetime analysis results
- Lifetime
Graph - Lifetime relationship graph
- Lifetime
Issue - Lifetime-related issues
- Lifetime
Pattern - Lifetime patterns
- Lifetime
Relationship - Lifetime relationship between closure and captured variable
- Optimization
Potential - Optimization potential analysis
- Optimization
Suggestion - Optimization suggestions
Enums§
- Capture
Event Type - Types of capture events
- Capture
Mode - Modes of variable capture
- Closure
Type - Types of closures
- Issue
Severity - Issue severity levels
- Lifetime
Issue Type - Types of lifetime issues
- Lifetime
Pattern Type - Types of lifetime patterns
- Memory
Impact - Memory impact assessment
- Optimization
Category - Categories of optimizations
- Optimization
Level - Levels of optimization potential
- Pattern
Impact - Impact of patterns
- Relationship
Type - Types of lifetime relationships
- Suggestion
Priority - Priority levels for suggestions
Functions§
- get_
global_ closure_ analyzer - Get the global closure analyzer instance