Class: Hone::Finding
- Inherits:
-
Data
- Object
- Data
- Hone::Finding
- Defined in:
- lib/hone/finding.rb
Overview
Represents a single optimization finding from static analysis.
Instance Attribute Summary collapse
-
#alloc_percent ⇒ Object
readonly
Returns the value of attribute alloc_percent.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#cpu_percent ⇒ Object
readonly
Returns the value of attribute cpu_percent.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#optimization_type ⇒ Object
readonly
Returns the value of attribute optimization_type.
-
#pattern_id ⇒ Object
readonly
Returns the value of attribute pattern_id.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#speedup ⇒ Object
readonly
Returns the value of attribute speedup.
Instance Method Summary collapse
-
#initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) ⇒ Finding
constructor
A new instance of Finding.
Constructor Details
#initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) ⇒ Finding
Returns a new instance of Finding.
60 61 62 |
# File 'lib/hone/finding.rb', line 60 def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end |
Instance Attribute Details
#alloc_percent ⇒ Object (readonly)
Returns the value of attribute alloc_percent
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |
#code ⇒ Object (readonly)
Returns the value of attribute code
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |
#column ⇒ Object (readonly)
Returns the value of attribute column
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |
#cpu_percent ⇒ Object (readonly)
Returns the value of attribute cpu_percent
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |
#file ⇒ Object (readonly)
Returns the value of attribute file
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |
#line ⇒ Object (readonly)
Returns the value of attribute line
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |
#message ⇒ Object (readonly)
Returns the value of attribute message
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |
#optimization_type ⇒ Object (readonly)
Returns the value of attribute optimization_type
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |
#pattern_id ⇒ Object (readonly)
Returns the value of attribute pattern_id
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |
#source ⇒ Object (readonly)
Returns the value of attribute source
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |
#speedup ⇒ Object (readonly)
Returns the value of attribute speedup
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hone/finding.rb', line 45 Finding = Data.define( :file, :line, :column, :pattern_id, :optimization_type, # :cpu, :allocation, :jit :source, # :hone, :fasterer, :rubocop :message, :speedup, # Optional: "1.5x faster" :code, # Source code snippet :method_name, # Populated by correlator :cpu_percent, # Populated by correlator :alloc_percent, # Populated by correlator (Phase 2) :priority # :hot, :warm, :cold ) do def initialize(method_name: nil, cpu_percent: nil, alloc_percent: nil, priority: nil, **kwargs) super end end |