#[non_exhaustive]pub enum DebugCommand {
Show 39 variants
InspectEntity {
entity_id: EntityId,
include_metadata: Option<bool>,
include_relationships: Option<bool>,
},
InspectBatch {
entity_ids: Vec<EntityId>,
include_metadata: Option<bool>,
include_relationships: Option<bool>,
limit: Option<usize>,
},
ProfileSystem {
system_name: String,
duration_ms: Option<u64>,
track_allocations: Option<bool>,
},
SetVisualDebug {
overlay_type: DebugOverlayType,
enabled: bool,
config: Option<Value>,
},
ExecuteQuery {
query: ValidatedQuery,
offset: Option<usize>,
limit: Option<usize>,
},
ValidateQuery {
params: Value,
},
EstimateCost {
params: Value,
},
GetQuerySuggestions {
params: Value,
},
BuildAndExecuteQuery {
params: Value,
},
ProfileMemory {
capture_backtraces: Option<bool>,
target_systems: Option<Vec<String>>,
duration_seconds: Option<u64>,
},
StopMemoryProfiling {
session_id: Option<String>,
},
GetMemoryProfile,
DetectMemoryLeaks {
target_systems: Option<Vec<String>>,
},
AnalyzeMemoryTrends {
target_systems: Option<Vec<String>>,
},
TakeMemorySnapshot,
GetMemoryStatistics,
SessionControl {
operation: SessionOperation,
session_id: Option<String>,
},
GetStatus,
GetHierarchy {
root_entity: Option<EntityId>,
max_depth: Option<usize>,
},
GetSystemInfo {
system_name: Option<String>,
include_scheduling: Option<bool>,
},
StartIssueDetection,
StopIssueDetection,
GetDetectedIssues {
limit: Option<usize>,
},
AcknowledgeIssue {
alert_id: String,
},
ReportFalsePositive {
alert_id: String,
},
GetIssueDetectionStats,
UpdateDetectionRule {
name: String,
enabled: Option<bool>,
sensitivity: Option<f32>,
},
ClearIssueHistory,
StartBudgetMonitoring,
StopBudgetMonitoring,
SetPerformanceBudget {
config: Value,
},
GetPerformanceBudget,
CheckBudgetViolations,
GetBudgetViolationHistory {
limit: Option<usize>,
},
GenerateComplianceReport {
duration_seconds: Option<u64>,
},
GetBudgetRecommendations,
ClearBudgetHistory,
GetBudgetStatistics,
Custom {
name: String,
params: Value,
},
}Expand description
Debug command types for extensible debugging operations
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InspectEntity
Inspect entity with detailed component information
Fields
InspectBatch
Inspect multiple entities in a single batch operation
Fields
ProfileSystem
Profile system performance
Fields
SetVisualDebug
Enable/disable visual debugging overlays
Fields
overlay_type: DebugOverlayTypeType of overlay
ExecuteQuery
Execute a validated ECS query
Fields
query: ValidatedQueryValidated query structure
ValidateQuery
Validate a query without executing it
EstimateCost
Estimate the cost of executing a query
GetQuerySuggestions
Get optimization suggestions for a query
BuildAndExecuteQuery
Build and execute a query using the query builder
ProfileMemory
Memory profiling command
Fields
StopMemoryProfiling
Stop memory profiling session
GetMemoryProfile
Get current memory profile
DetectMemoryLeaks
Detect memory leaks
AnalyzeMemoryTrends
Analyze memory usage trends
TakeMemorySnapshot
Take a memory snapshot
GetMemoryStatistics
Get memory profiler statistics
SessionControl
Session management
GetStatus
Get debug system status
GetHierarchy
Get entity hierarchy information
Fields
GetSystemInfo
Get system information and metadata
Fields
StartIssueDetection
Start automated issue detection monitoring
StopIssueDetection
Stop automated issue detection monitoring
GetDetectedIssues
Get detected issues/alerts
AcknowledgeIssue
Acknowledge an issue alert
ReportFalsePositive
Report an alert as a false positive
GetIssueDetectionStats
Get issue detection statistics
UpdateDetectionRule
Update a detection rule configuration
Fields
ClearIssueHistory
Clear issue alert history
StartBudgetMonitoring
Start performance budget monitoring
StopBudgetMonitoring
Stop performance budget monitoring
SetPerformanceBudget
Set performance budget configuration
GetPerformanceBudget
Get current performance budget configuration
CheckBudgetViolations
Check for current budget violations
GetBudgetViolationHistory
Get budget violation history
GenerateComplianceReport
Generate compliance report for specified duration
GetBudgetRecommendations
Get budget recommendations based on historical data
ClearBudgetHistory
Clear budget violation history
GetBudgetStatistics
Get budget monitoring statistics
Custom
Custom debug command for extensions
Trait Implementations§
Source§impl Clone for DebugCommand
impl Clone for DebugCommand
Source§fn clone(&self) -> DebugCommand
fn clone(&self) -> DebugCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DebugCommand
impl Debug for DebugCommand
Source§impl<'de> Deserialize<'de> for DebugCommand
impl<'de> Deserialize<'de> for DebugCommand
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 DebugCommand
impl RefUnwindSafe for DebugCommand
impl Send for DebugCommand
impl Sync for DebugCommand
impl Unpin for DebugCommand
impl UnwindSafe for DebugCommand
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