class

Opal::UI::BinaryMetrics

Inherits Opal::UI::Element < Opal::UI::Themable < Reference < Object

Generic visual dashboard for radare2 / binary static and dynamic analysis. Displays section distribution, function size outliers, security hardening posture, and code-to-data memory balance.

Constructors

new(target_name : String = "binary", total_size : UInt64 = 0_u64, code_size : UInt64 = 0_u64, sections : Array(Opal::UI::BinarySection) = [] of BinarySection, top_functions : Array(Opal::UI::BinaryFunction) = [] of BinaryFunction, hardening : Array(Opal::UI::HardeningFlag) = [] of HardeningFlag, title : String | Nil = "RADARE2 BINARY ANALYSIS & HARDENING METRICS", bar_char : Char = '|')
Source

Instance methods

add_function(name : String, size : UInt64, complexity : Int32 = 1) : Nil
Source
add_hardening(name : String, enabled : Bool, description : String = "") : Nil
Source
add_section(name : String, size : UInt64, percentage : Float64, is_code : Bool = false, is_data : Bool = false) : Nil
Source
bar_char
Source
bar_char=(bar_char : Char)
Source
code_size
Source
code_size=(code_size : UInt64)
Source
hardening
Source
hardening=(hardening : Array(HardeningFlag))
Source
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
Source
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
Source
sections
Source
sections=(sections : Array(BinarySection))
Source
target_name
Source
target_name=(target_name : String)
Source
title
Source
title=(title : String | Nil)
Source
top_functions
Source
top_functions=(top_functions : Array(BinaryFunction))
Source
total_size
Source
total_size=(total_size : UInt64)
Source