# File lib/new_relic/agent/stats_engine/gc_profiler.rb, line 38
        def self.record_delta(start_snapshot, end_snapshot)
          if @profiler && start_snapshot && end_snapshot
            elapsed_gc_time_s = end_snapshot.gc_time_s - start_snapshot.gc_time_s
            num_calls         = end_snapshot.gc_call_count - start_snapshot.gc_call_count
            record_gc_metric(num_calls, elapsed_gc_time_s)

            @profiler.reset
            elapsed_gc_time_s
          end
        end