Sha256: 8d1ae1278944102911d9d6369ac61232ee347c793aa7b00b2a33c50f887966fd

Contents?: true

Size: 883 Bytes

Versions: 36

Compression:

Stored size: 883 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/transaction_sample'
require 'new_relic/transaction_sample/segment'
require 'new_relic/transaction_sample/summary_segment'
module NewRelic
  class TransactionSample
    class CompositeSegment < Segment
      attr_reader :detail_segments

      def initialize(segments)
        summary = SummarySegment.new(segments.first)
        super summary.entry_timestamp, "Repeating pattern (#{segments.length} repeats)", nil

        summary.end_trace(segments.last.exit_timestamp)

        @detail_segments = segments.clone

        add_called_segment(summary)
        end_trace summary.exit_timestamp
      end

      def detail_segments=(segments)
        @detail_segments = segments
      end

    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
newrelic_rpm-3.6.4.122 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.4.113.beta lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.3.111 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.3.106 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.3.105.beta lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.3.104 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.3.103.beta lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.2.96 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.2.90.beta lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.1.88 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.1.87 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.1.86.beta lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.1.85.beta lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.0.83 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.0.78 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.6.0.74.beta lib/new_relic/transaction_sample/composite_segment.rb