class
Crowbar::Metadata
- Crowbar::Metadata
- Reference
- Object
Overview
Detailed metadata record for each transformation round. Provides telemetry for mutations applied, modified offsets, and reproducibility.
Defined in:
crowbar/metadata.crConstructors
Instance Method Summary
- #fitness : Float64
- #fitness=(fitness : Float64)
- #input_size : Int32
- #input_size=(input_size : Int32)
- #iteration : Int64
- #iteration=(iteration : Int64)
- #modified_ranges : Array(Tuple(Int32, Int32))
- #modified_ranges=(modified_ranges : Array(Tuple(Int32, Int32)))
- #mutations_applied : Array(String)
- #mutations_applied=(mutations_applied : Array(String))
- #output_size : Int32
- #output_size=(output_size : Int32)
- #record_mutation(name : String, range : Tuple(Int32, Int32) | Nil = nil, description : String | Nil = nil)
- #record_step(category : StepCategory, name : String, description : String, range : Tuple(Int32, Int32) | Nil = nil, diff_bytes : Int32 = 0, details : Hash(String, String) = Hash(String, String).new) : TransformationStep
- #seed : UInt64
- #seed=(seed : UInt64)
- #steps : Array(TransformationStep)
- #steps=(steps : Array(TransformationStep))
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
Constructor Detail
def self.new(seed : UInt64 = 0_u64, iteration : Int64 = 0_i64, input_size : Int32 = 0, output_size : Int32 = 0)
#
Instance Method Detail
def record_mutation(name : String, range : Tuple(Int32, Int32) | Nil = nil, description : String | Nil = nil)
#
def record_step(category : StepCategory, name : String, description : String, range : Tuple(Int32, Int32) | Nil = nil, diff_bytes : Int32 = 0, details : Hash(String, String) = Hash(String, String).new) : TransformationStep
#
def to_s(io : IO)
#
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>