#-----------------------------------------------------------------# # # # (C) Copyright Rubysophic Inc. 2007-2008 # # All rights reserved. # # # # Use, duplication or disclosure of the code is not permitted # # unless licensed. # # # # Last Updated: 7/08/08 # #-----------------------------------------------------------------# # # # RubyRunHTML__ defines HTML templates and assigns them to # # various constants to be used by other reporter modules. # # The templates include thread status, method trace and RSS # # content. # # # #-----------------------------------------------------------------# module RubyRunHTML__ OBJ_MAP_HTML = " %OBJ_MAP_ROW%
Top 20 Ruby classes with the largest number of objects (%START_TIMESTAMP%)
Class name Number of objects


" OBJ_MAP_ODD_ROW = " %s %s" OBJ_MAP_EVEN_ROW = " %s %s" THREAD_STATUS_HTML = " %THREAD_STATUS_ROW%
RubyRun Thread Status Starts (%START_TIMESTAMP%)
Thread ID Status Top of the stack


" THREAD_STATUS_ODD_ROW = " %s %s %s" THREAD_STATUS_EVEN_ROW = " %s %s %s" METHOD_TRACE_HEADER = "" METHOD_TRACE_ODD_ROW = "" METHOD_TRACE_EVEN_ROW = "" THROUGHPUT_HTML = "

Performance summary of %APPS_NAME% as of %TIMESTAMP%

Time Thread ID Method Entry/Exit Time Taken Class Method Parameter Value(s) Caller Object Class Caller Method
%s %s %s %s %s %s %s %s %s
%s %s %s %s %s %s %s %s %s
%THROUGHPUT_BAR_TABLE%%THROUGHPUT_LABEL_TABLE%
Average throughput per min
 Time
" THROUGHPUT_BAR_TABLE = " %s
" THROUGHPUT_LABEL_TABLE = "%s" TOP_SLOWEST_REQUESTS_HTML ="

Top 10 Slowest Requests

%TOP_SLOWEST_REQUESTS_TABLE%
Controller/Action Response Time
" TOP_SLOWEST_REQUESTS_TABLE="%s
%0.3fs
" REQ_PERF_BREAKDOWN_HTML ="

Request Performance Breakdown

%REQ_PERF_BREAKDOWN_TABLE%
Controller/Action Request Count Response Time Action Time Database IO Time View Time Dispatch Delay Time Uncaptured Time
Note: Process components are results of functional decomposition which overlap each other. As a result, times do not add up to 100%. The hotspots of performance slowdowns, however, are easily accountable from functional standpoint.

" REQ_PERF_BREAKDOWN_TABLE_ODD=' %s %d %0.3fs %0.3fs (%d%%) %0.3fs (%d%%) %0.3fs (%d%%) %0.3fs (%d%%) %0.3fs ' REQ_PERF_BREAKDOWN_TABLE_EVEN=' %s %d %0.3fs %0.3fs (%d%%) %0.3fs (%d%%) %0.3fs (%d%%) %0.3fs (%d%%) %0.3fs ' end