Sha256: 61264fa6caa49da92c79b27a16b862881fe79eda4a9e36e6a27e39dc8030428d

Contents?: true

Size: 664 Bytes

Versions: 16

Compression:

Stored size: 664 Bytes

Contents

# typed: true

module Datadog
  module Profiling
    # Entity class used to represent an entry in a stack trace.
    # Its fields are a simplified struct version of `Thread::Backtrace::Location`.
    class BacktraceLocation
      attr_reader \
        :base_label,
        :lineno,
        :path,
        :hash

      def initialize(
        base_label,
        lineno,
        path
      )
        @base_label = base_label
        @lineno = lineno
        @path = path
        @hash = [base_label, lineno, path].hash
      end

      def ==(other)
        hash == other.hash
      end

      def eql?(other)
        hash == other.hash
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.8.0 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.7.0 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.6.1 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.6.0 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.5.2 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.5.1 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.5.0 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.4.2 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.4.1 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.4.0 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.3.0 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.2.0 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.1.0 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.0.0 lib/datadog/profiling/backtrace_location.rb
ddtrace-1.0.0.beta2 lib/datadog/profiling/backtrace_location.rb