#-----------------------------------------------------------------#
# #
# (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 = "
Top 20 Ruby classes with the largest number of objects (%START_TIMESTAMP%) |
Class name |
Number of objects |
%OBJ_MAP_ROW%
"
OBJ_MAP_ODD_ROW = "
%s |
%s | "
OBJ_MAP_EVEN_ROW = "
%s |
%s | "
THREAD_STATUS_HTML = "
RubyRun Thread Status Starts (%START_TIMESTAMP%) |
Thread ID |
Status |
Top of the stack |
%THREAD_STATUS_ROW%
"
THREAD_STATUS_ODD_ROW = "
%s |
%s |
%s | "
THREAD_STATUS_EVEN_ROW = "
%s |
%s |
%s |
"
METHOD_TRACE_HEADER = "
Time |
Thread ID |
Method Entry/Exit |
Time Taken |
Class |
Method |
Parameter Value(s) |
Caller Object Class |
Caller Method |
"
METHOD_TRACE_ODD_ROW = "
%s |
%s |
%s |
%s |
%s |
%s |
%s |
%s |
%s |
"
METHOD_TRACE_EVEN_ROW = "
%s |
%s |
%s |
%s |
%s |
%s |
%s |
%s |
%s |
"
THROUGHPUT_HTML = "Performance summary of %APPS_NAME% as of %TIMESTAMP%
Average throughput per min | %THROUGHPUT_BAR_TABLE%
| %THROUGHPUT_LABEL_TABLE%
Time |
"
THROUGHPUT_BAR_TABLE = "
%s
| "
THROUGHPUT_LABEL_TABLE = "%s | "
TOP_SLOWEST_REQUESTS_HTML ="Top 10 Slowest Requests
Controller/Action |
Response Time |
%TOP_SLOWEST_REQUESTS_TABLE%
"
TOP_SLOWEST_REQUESTS_TABLE="%s |
|
"
REQ_PERF_BREAKDOWN_HTML ="Request Performance Breakdown
Controller/Action |
Request Count |
Response Time |
Action Time |
Database IO Time |
View Time |
Dispatch Delay Time |
Uncaptured Time |
%REQ_PERF_BREAKDOWN_TABLE%
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