class Datadog::Profiling::BacktraceLocation

Entity class used to represent an entry in a stack trace. Its fields are a simplified struct version of `Thread::Backtrace::Location`.

Attributes

base_label[R]
hash[R]
lineno[R]
path[R]

Public Class Methods

new( base_label, lineno, path ) click to toggle source
# File lib/ddtrace/profiling/backtrace_location.rb, line 13
def initialize(
  base_label,
  lineno,
  path
)
  @base_label = base_label
  @lineno = lineno
  @path = path
  @hash = [base_label, lineno, path].hash
end

Public Instance Methods

==(other) click to toggle source
# File lib/ddtrace/profiling/backtrace_location.rb, line 24
def ==(other)
  hash == other.hash
end
eql?(other) click to toggle source
# File lib/ddtrace/profiling/backtrace_location.rb, line 28
def eql?(other)
  hash == other.hash
end