Sha256: 6cc27f6541552d1870d2a66a7e9895b3bd45cb4b19e8c6e1ea853753077ccdfd

Contents?: true

Size: 878 Bytes

Versions: 14

Compression:

Stored size: 878 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)"

        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

14 entries across 14 versions & 1 rubygems

Version Path
newrelic_rpm-3.11.2.286 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.11.1.284 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.11.0.283 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.10.0.279 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.9.9.275 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.9.8.273 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.9.7.266 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.9.6.257 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.9.5.251 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.9.4.245 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.9.3.241 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.9.2.239 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.9.1.236 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.9.0.229 lib/new_relic/transaction_sample/composite_segment.rb