[Groonga-commit] groonga/groonga-query-log at 523fdeb [master] analyzer reporter json: add "slow" information

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jul 23 13:06:08 JST 2014


Kouhei Sutou	2014-07-23 13:06:08 +0900 (Wed, 23 Jul 2014)

  New Revision: 523fdeb082bbc506a4a984e7d2ec391c54165a8d
  https://github.com/groonga/groonga-query-log/commit/523fdeb082bbc506a4a984e7d2ec391c54165a8d

  Message:
    analyzer reporter json: add "slow" information

  Modified files:
    lib/groonga/query-log/analyzer/reporter/json.rb

  Modified: lib/groonga/query-log/analyzer/reporter/json.rb (+2 -0)
===================================================================
--- lib/groonga/query-log/analyzer/reporter/json.rb    2014-07-23 11:50:39 +0900 (1e4e1f1)
+++ lib/groonga/query-log/analyzer/reporter/json.rb    2014-07-23 13:06:08 +0900 (f17fcf8)
@@ -51,6 +51,7 @@ module Groonga
             "last_time" => statistic.last_time.to_i,
             "elapsed" => statistic.elapsed_in_seconds,
             "return_code" => statistic.return_code,
+            "slow" => statistic.slow?,
           }
           command = statistic.command
           arguments = command.arguments.collect do |key, value|
@@ -67,6 +68,7 @@ module Groonga
             operation_data["name"] = operation[:name]
             operation_data["relative_elapsed"] = operation[:relative_elapsed_in_seconds]
             operation_data["context"] = operation[:context]
+            operation_data["slow"] = operation[:slow?]
             operations << operation_data
           end
           data["operations"] = operations
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index