Sha256: 30eb175f85a27f17b91893664cc09fe3f9d01c240d30f9ad901ffbcbddfce353

Contents?: true

Size: 724 Bytes

Versions: 96

Compression:

Stored size: 724 Bytes

Contents

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

96 entries across 96 versions & 5 rubygems

Version Path
wd_newrelic_rpm-3.5.8 lib/new_relic/transaction_sample/composite_segment.rb
sundawg_newrelic_rpm-3.5.8.2 lib/new_relic/transaction_sample/composite_segment.rb
sundawg_newrelic_rpm-3.5.8.1 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.8.72 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.8.70 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.8.64.beta lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.7.59 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.7.59.beta lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.7.58.beta lib/new_relic/transaction_sample/composite_segment.rb
wd_newrelic_rpm-3.5.6 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.7.57.beta lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.6.55 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.6.48.beta lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.6.46.beta lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.6.42.beta lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.5.39.beta lib/new_relic/transaction_sample/composite_segment.rb
wd_newrelic_rpm-3.5.5 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.5.38 lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.5.540.dev lib/new_relic/transaction_sample/composite_segment.rb
newrelic_rpm-3.5.4.35.beta lib/new_relic/transaction_sample/composite_segment.rb