struct Tessell::Kit::DebugInfo

Defined in:

tessell/kit/debug_overlay.cr

Constructors

Instance Method Summary

Constructor Detail

def self.collect(backend_stats : Tessell::Render::FrameStats, atlas : Tessell::Text::GlyphAtlas | Nil, root : Root | Nil, frame_ms : Float32, dirty : Array(Tessell::Rect) | Nil = nil) : DebugInfo #

组装自后端 stats + atlas + Root 状态;宿主只需传 frame_ms 与 dirty。


[View source]
def self.new(frame_ms : Float32 = 0.0_f32, quads : Int32 = 0, scissor_calls : Int32 = 0, culled_quads : Int32 = 0, stencil_fills : Int32 = 0, atlas_pages : Int32 = 0, rgba_pages : Int32 = 0, used_pixels : Int32 = 0, evicted_total : Int32 = 0, dirty_rects : Array(Tessell::Rect) = [] of Tessell::Rect, hover_name : String = "", focus_name : String = "", build_warnings : Array(String) = [] of String, perf_summary : String = "") #

[View source]

Instance Method Detail

def atlas_pages : Int32 #

[View source]
def build_warnings : Array(String) #

建树期未追踪 signal 读告警(issue #41 第一期)


[View source]
def culled_quads : Int32 #

[View source]
def dirty_rects : Array(Tessell::Rect) #

[View source]
def evicted_total : Int32 #

[View source]
def focus_name : String #

[View source]
def fps : Float32 #

[View source]
def frame_ms : Float32 #

[View source]
def hover_name : String #

[View source]
def perf_summary : String #

分段观测摘要(issue #60):宿主从 PerfCollector 生成的一行文本, 空串 = 未启用。仅 F1 overlay 展示,不进门禁(AGENTS #10)。


[View source]
def quads : Int32 #

[View source]
def rgba_pages : Int32 #

[View source]
def scissor_calls : Int32 #

[View source]
def stencil_fills : Int32 #

[View source]
def used_pixels : Int32 #

[View source]