Haruka Yoshihara
null+****@clear*****
Wed Dec 12 16:28:43 JST 2012
Haruka Yoshihara 2012-12-12 16:28:43 +0900 (Wed, 12 Dec 2012) New Revision: 6a859fc138eb2ba62d1f7cb7c2cd9caea3d6ed47 https://github.com/groonga/groonga-query-log/commit/6a859fc138eb2ba62d1f7cb7c2cd9caea3d6ed47 Log: Define Statistic under Groonga::QueryLog::Analyzer Modified files: lib/groonga/query-log/analyzer/statistics.rb lib/groonga/query-log/parser.rb Modified: lib/groonga/query-log/analyzer/statistics.rb (+2 -0) =================================================================== --- lib/groonga/query-log/analyzer/statistics.rb 2012-12-12 16:28:00 +0900 (e6fdc23) +++ lib/groonga/query-log/analyzer/statistics.rb 2012-12-12 16:28:43 +0900 (cbfe9ee) @@ -20,6 +20,7 @@ require "groonga/command" module Groonga module QueryLog + class Analyzer class Statistic attr_reader :context_id, :start_time, :raw_command attr_reader :elapsed, :return_code @@ -146,4 +147,5 @@ module Groonga end end end + end end Modified: lib/groonga/query-log/parser.rb (+1 -1) =================================================================== --- lib/groonga/query-log/parser.rb 2012-12-12 16:28:00 +0900 (3556f31) +++ lib/groonga/query-log/parser.rb 2012-12-12 16:28:43 +0900 (1d749bd) @@ -49,7 +49,7 @@ module Groonga time_stamp, context_id, type, rest, &block) case type when ">" - statistic = Statistic.new(context_id) + statistic = Analyzer::Statistic.new(context_id) statistic.start(time_stamp, rest) current_statistics[context_id] = statistic when ":" -------------- next part -------------- HTML����������������������������...Download