< Summary

Information
Class: Lattice.ECS.Framework.SystemSchedulerTraceEvent
Assembly: Lattice
File(s): /home/runner/work/Sideline/Sideline/godot/scripts/lattice/ECS/Framework/SystemSchedulerTrace.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 14
Coverable lines: 14
Total lines: 53
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Node()100%210%
get_Phase()100%210%
get_SchedulerBoundary()100%210%
get_System()100%210%
get_Name()100%210%
get_TypeName()100%210%
get_Order()100%210%
get_Kind()100%210%
get_Category()100%210%
get_DebugCategory()100%210%
get_Depth()100%210%
get_IsGroup()100%210%
get_Initialized()100%210%
get_Active()100%210%

File(s)

/home/runner/work/Sideline/Sideline/godot/scripts/lattice/ECS/Framework/SystemSchedulerTrace.cs

#LineLine coverage
 1// Copyright (c) 2026 Sideline Authors. All rights reserved.
 2// Licensed under GPL-3.0.
 3
 4namespace Lattice.ECS.Framework
 5{
 6    /// <summary>
 7    /// 调度器 trace 事件阶段。
 8    /// </summary>
 9    public enum SystemSchedulerTracePhase
 10    {
 11        InitEnter,
 12        InitExit,
 13        EnabledEnter,
 14        EnabledExit,
 15        UpdateEnter,
 16        UpdateExit,
 17        DisabledEnter,
 18        DisabledExit,
 19        DisposeEnter,
 20        DisposeExit
 21    }
 22
 23    /// <summary>
 24    /// 调度器 trace 只读事件。
 25    /// </summary>
 26    public readonly record struct SystemSchedulerTraceEvent(
 027        SystemNodeInfo Node,
 028        SystemSchedulerTracePhase Phase,
 029        SystemSchedulerBoundary SchedulerBoundary)
 30    {
 031        public ISystem System => Node.System;
 32
 033        public string Name => Node.Name;
 34
 035        public string TypeName => Node.TypeName;
 36
 037        public int Order => Node.Order;
 38
 039        public SystemExecutionKind Kind => Node.Kind;
 40
 041        public string? Category => Node.Category;
 42
 043        public string? DebugCategory => Node.DebugCategory;
 44
 045        public int Depth => Node.Depth;
 46
 047        public bool IsGroup => Node.IsGroup;
 48
 049        public bool Initialized => Node.Initialized;
 50
 051        public bool Active => Node.Active;
 52    }
 53}