views:

28

answers:

0

Hi ,

I have the rails application. i want to test the performance.so i decided to implement a tool... i download the rawk.rb file from the following URL

http://ckhsponge.wordpress.com/2006/10/11/ruby-on-rails-log-analyzer-rawk/ .

The tool is working greatly i can get the output like the following :

**Top 20 Greatest Standard Deviation

Request

                Count  Sum   Max   Median  Avg   Min   Std
/categories/6   2      0.05  0.03  0.03    0.03  0.02  0.00
/categories/60  2      0.05  0.03  0.02    0.02  *     *                                  

I want the output like :

**Top 20 Greatest Standard Deviation

Request

                         Count  Sum  Max  Median  Avg  Min
Actioncontrollor#show    10     10   10   10     
Examplecontroller#index  10     10   10   10      10   10

For this kind of output they suggest to add the following class into environment.rb file

class Logger
  def format_message(severity, timestamp, progname, msg)
    "#{msg} (pid:#{$$})\n"
  end
end

The environment got loaded without any error but i desired output is not generated... please Any one help me what i missed here