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