Method: NewRelic::Agent::SqlSampler#initialize

Defined in:
lib/new_relic/agent/sql_sampler.rb

#initializeSqlSampler

Returns a new instance of SqlSampler.

[View source]

33
34
35
36
37
38
39
40
# File 'lib/new_relic/agent/sql_sampler.rb', line 33

def initialize
  @sql_traces = {}

  # This lock is used to synchronize access to @sql_traces
  # and related variables. It can become necessary on JRuby or
  # any 'honest-to-god'-multithreaded system
  @samples_lock = Mutex.new
end