Class: Groonga::QueryLog::MemoryLeakDetector
- Inherits:
-
Object
- Object
- Groonga::QueryLog::MemoryLeakDetector
- Defined in:
- lib/groonga/query-log/memory-leak-detector.rb
Defined Under Namespace
Classes: Options
Instance Method Summary collapse
- #detect(input) ⇒ Object
-
#initialize(options) ⇒ MemoryLeakDetector
constructor
A new instance of MemoryLeakDetector.
Constructor Details
#initialize(options) ⇒ MemoryLeakDetector
Returns a new instance of MemoryLeakDetector.
28 29 30 |
# File 'lib/groonga/query-log/memory-leak-detector.rb', line 28 def initialize() @options = end |
Instance Method Details
#detect(input) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/groonga/query-log/memory-leak-detector.rb', line 32 def detect(input) each_command(input) do |command| @options.create_client do |client| begin check_command(client, command) rescue Groonga::Client::Connection::Error # TODO: add error log mechanism $stderr.puts(Time.now.iso8601) $stderr.puts(command.original_source) $stderr.puts($!.raw_error.) $stderr.puts($!.raw_error.backtrace) end end end end |