rubyrun 0.9.9 → 0.9.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,7 +49,7 @@ module RubyRunGlobals
49
49
  RUBYRUN_ACTIVERECORD = 'ActiveRecord::Base'
50
50
  RUBYRUN_VIEW_HASH = {'ActionView::Base' => ['_exempt_from_layout?', 'render', 'pick_template_extension','render_file']}
51
51
  RUBYRUN_THREAD_END_HASH = {'WEBrick::HTTPServer' => ['run'], 'Mongrel::HttpServer' => ['process_client']}
52
- RUBYRUN_OUTER_DISPATCH_HASH = {'Mongrel::Rails::RailsHandler' => ['process'], 'DispatchServlet' => ['service']}
52
+ RUBYRUN_OUTER_DISPATCH_HASH = {'Mongrel::Rails::RailsHandler' => ['process'], 'Rack::Handler::WEBrick' => ['service'], 'DispatchServlet' => ['service'], 'Mongrel::HttpServer' => ['process_client']}
53
53
  RUBYRUN_INNER_DISPATCH_HASH = { 'Dispatcher' => ['dispatch'], 'ActionController::Dispatcher' => ['dispatch']}
54
54
 
55
55
  end
@@ -68,7 +68,7 @@ module RubyRunInstrumentor__
68
68
  # methods or singleton methods then it should NOT be excluded. Otherwise
69
69
  # it is assumed it is an inherited one and hence excluded.
70
70
  def is_non_negotiably_excluded?(type, klass, id)
71
- return true if is_in?(RUBYRUN_FIREWALL_HASH, klass, id)
71
+ return true if is_in?(RUBYRUN_FIREWALL_HASH, klass, id, mode='strict')
72
72
  return true if id.id2name[-1,1] == '='
73
73
  if id.id2name[0, RUBYRUN_PREFIX_LENGTH] == RUBYRUN_PREFIX
74
74
  $rubyrun_prev_method = id.id2name
@@ -200,7 +200,7 @@ module RubyRunInstrumentor__
200
200
  (t2 - t1) >= RUBYRUN_HIGHLIGHT_THRESHOLD ? (type = "* #{sprintf("%6.2f", t2-t1)} Exit ") : (type = " #{sprintf("%6.2f", t2-t1)} Exit ")
201
201
  enter_trace(tid, type, nil, nil, klass, mid, nil)
202
202
  end
203
- report_rails_timing(klass, mid, t2, t1, tid) if $rubyrun_thread_local[tid] && (t2 - t1) > 0
203
+ report_rails_timing(klass, mid, t2, t1, tid) if $rubyrun_thread_local[tid]
204
204
  result
205
205
  end
206
206
 
@@ -134,7 +134,10 @@ module RubyRunMonitor__
134
134
  elsif is_rails_controller?(klass)
135
135
  $rubyrun_thread_local[tid][:action_t] = t
136
136
  $rubyrun_thread_local[tid][:scafold_style] = $rubyrun_thread_local[tid][:view_t].empty? ? true : false
137
- elsif is_in?(RUBYRUN_THREAD_END_HASH, klass, mid, 'strict')
137
+ end
138
+ # For Rails 2.3.5, class/method for thread end is the same as outer dispatch
139
+ # So there has to be a separate logic to check if this is a thread end
140
+ if is_in?(RUBYRUN_THREAD_END_HASH, klass, mid, 'strict')
138
141
  roll_up_metrics(tid, true)
139
142
  end
140
143
  end
metadata CHANGED
@@ -1,123 +1,126 @@
1
1
  --- !ruby/object:Gem::Specification
2
- required_ruby_version: !ruby/object:Gem::Requirement
3
- requirements:
4
- - - '>='
5
- - !ruby/object:Gem::Version
6
- version: "0"
7
- version:
8
- email: info@rubysophic.com
9
- cert_chain: []
10
-
11
- summary: RubyRun Community Edition is an application performance diagnostic solution
12
- for Ruby developers
13
- post_install_message:
14
- extra_rdoc_files:
15
- - doc/README
16
- homepage: http://www.rubysophic.com
17
- signing_key:
18
2
  name: rubyrun
19
- rdoc_options:
20
- - --title
21
- - RubyRun Community Edition
22
- - --line-numbers
23
- - --inline-source
24
- - --main
25
- - doc/README
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 9
8
+ - 9
9
+ - 1
10
+ version: 0.9.9.1
11
+ platform: ruby
12
+ authors:
13
+ - RubySophic Inc
26
14
  autorequire:
27
- rubyforge_project: rubyrunce
28
- executables: []
15
+ bindir: bin
16
+ cert_chain: []
29
17
 
30
- description: RubyRun Community Edition is an application performance diagnostic solution for
31
- Ruby developers. It is meant to help them gain visibility into the behavior of
32
- their code in different operating environments, and understand the response time
33
- hotspots of typical Rails requests. For more information on usage, support and license,
34
- refer to the documents in 'docs' directory in the gem.
35
- specification_version: 2
18
+ date: 2010-04-20 00:00:00 -07:00
36
19
  default_executable:
20
+ dependencies: []
21
+
22
+ description: " RubyRun Community Edition is an application performance diagnostic solution \n for Ruby developers. It is meant to help them gain visibility into the behavior \n of their code in different operating environments, and understand the response \n time hotspots of typical Rails requests.\n For more information on usage, support and license, refer to the documents \n in 'docs' directory in the gem.\n"
23
+ email: info@rubysophic.com
24
+ executables: []
25
+
26
+ extensions:
27
+ - bin/Rakefile
28
+ extra_rdoc_files:
29
+ - doc/README
37
30
  files:
38
- - doc/README
39
- - LICENSE
40
- - lib/rubyrun
41
- - lib/rubyrun/rubyrun_instrumentor__.rb
42
- - lib/rubyrun/rubyrun_tracer__.rb
43
- - lib/rubyrun/rubyrun_initializer__.rb
44
- - lib/rubyrun/rubyrun_rss__.rb
45
- - lib/rubyrun/ubyrun.rb
46
- - lib/rubyrun/rubyrun_commander__.rb
47
- - lib/rubyrun/rubyrun_html_writer__.rb
48
- - lib/rubyrun/rubyrun_html__.rb
49
- - lib/rubyrun/rubyrun_monitor__.rb
50
- - lib/rubyrun/rubyrun_utils__.rb
51
- - lib/rubyrun/rubyrun_globals.rb
52
- - lib/rubyrun/rubyrun.rb
53
- - lib/rubyrun/rubyrun_dad__.rb
54
- - lib/rubyrun/rubyrun_boot__.rb
55
- - lib/rubyrun/rubyrun_buffer_mgr__.rb
56
- - lib/rubyrun/rubyrun_report__.rb
57
- - bin/rubyrun_native_test__.rb
58
- - bin/Rakefile
59
- - ext/rubyrunnative__x86-mswin32.so
60
- - ext/extconf.rb
61
- - ext/rubyrunnative__ppc-darwin.bundle
62
- - ext/rubyrunnative__.def
63
- - ext/rubyrunnative__x86-darwin.bundle
64
- - ext/rubyrunnative__x86-linux.so
65
- - ext/rubyrunnative__.c
66
- - ext/rubyrunnative__.h
67
- - doc/rubyrun-0.9.9.htm
68
- - doc/rubyrun-0.9.9_files
69
- - doc/rubyrun-0.9.9.pdf
70
- - doc/rubyrun-0.9.9_files/image014.jpg
71
- - doc/rubyrun-0.9.9_files/themedata.thmx
72
- - doc/rubyrun-0.9.9_files/image016.jpg
73
- - doc/rubyrun-0.9.9_files/image008.jpg
74
- - doc/rubyrun-0.9.9_files/image001.jpg
75
- - doc/rubyrun-0.9.9_files/image019.jpg
76
- - doc/rubyrun-0.9.9_files/header.htm
77
- - doc/rubyrun-0.9.9_files/image020.jpg
78
- - doc/rubyrun-0.9.9_files/image021.jpg
79
- - doc/rubyrun-0.9.9_files/image010.jpg
80
- - doc/rubyrun-0.9.9_files/image012.jpg
81
- - doc/rubyrun-0.9.9_files/image007.jpg
82
- - doc/rubyrun-0.9.9_files/image009.jpg
83
- - doc/rubyrun-0.9.9_files/image005.jpg
84
- - doc/rubyrun-0.9.9_files/colorschememapping.xml
85
- - doc/rubyrun-0.9.9_files/image006.jpg
86
- - doc/rubyrun-0.9.9_files/image013.jpg
87
- - doc/rubyrun-0.9.9_files/image003.jpg
88
- - doc/rubyrun-0.9.9_files/image022.png
89
- - doc/rubyrun-0.9.9_files/image018.jpg
90
- - doc/rubyrun-0.9.9_files/image004.jpg
91
- - doc/rubyrun-0.9.9_files/image011.jpg
92
- - doc/rubyrun-0.9.9_files/image017.png
93
- - doc/rubyrun-0.9.9_files/image002.jpg
94
- - doc/rubyrun-0.9.9_files/filelist.xml
95
- - doc/rubyrun-0.9.9_files/image015.jpg
96
- - etc/rubyrun_opts.yml
31
+ - doc/README
32
+ - LICENSE
33
+ - lib/rubyrun/rubyrun.rb
34
+ - lib/rubyrun/rubyrun_boot__.rb
35
+ - lib/rubyrun/rubyrun_buffer_mgr__.rb
36
+ - lib/rubyrun/rubyrun_commander__.rb
37
+ - lib/rubyrun/rubyrun_dad__.rb
38
+ - lib/rubyrun/rubyrun_globals.rb
39
+ - lib/rubyrun/rubyrun_html_writer__.rb
40
+ - lib/rubyrun/rubyrun_html__.rb
41
+ - lib/rubyrun/rubyrun_initializer__.rb
42
+ - lib/rubyrun/rubyrun_instrumentor__.rb
43
+ - lib/rubyrun/rubyrun_monitor__.rb
44
+ - lib/rubyrun/rubyrun_report__.rb
45
+ - lib/rubyrun/rubyrun_rss__.rb
46
+ - lib/rubyrun/rubyrun_tracer__.rb
47
+ - lib/rubyrun/rubyrun_utils__.rb
48
+ - lib/rubyrun/ubyrun.rb
49
+ - bin/Rakefile
50
+ - bin/rubyrun_native_test__.rb
51
+ - ext/extconf.rb
52
+ - ext/rubyrunnative__.c
53
+ - ext/rubyrunnative__.def
54
+ - ext/rubyrunnative__.h
55
+ - ext/rubyrunnative__ppc-darwin.bundle
56
+ - ext/rubyrunnative__x86-darwin.bundle
57
+ - ext/rubyrunnative__x86-linux.so
58
+ - ext/rubyrunnative__x86-mswin32.so
59
+ - doc/rubyrun-0.9.9.htm
60
+ - doc/rubyrun-0.9.9.pdf
61
+ - doc/rubyrun-0.9.9_files/colorschememapping.xml
62
+ - doc/rubyrun-0.9.9_files/filelist.xml
63
+ - doc/rubyrun-0.9.9_files/header.htm
64
+ - doc/rubyrun-0.9.9_files/image001.jpg
65
+ - doc/rubyrun-0.9.9_files/image002.jpg
66
+ - doc/rubyrun-0.9.9_files/image003.jpg
67
+ - doc/rubyrun-0.9.9_files/image004.jpg
68
+ - doc/rubyrun-0.9.9_files/image005.jpg
69
+ - doc/rubyrun-0.9.9_files/image006.jpg
70
+ - doc/rubyrun-0.9.9_files/image007.jpg
71
+ - doc/rubyrun-0.9.9_files/image008.jpg
72
+ - doc/rubyrun-0.9.9_files/image009.jpg
73
+ - doc/rubyrun-0.9.9_files/image010.jpg
74
+ - doc/rubyrun-0.9.9_files/image011.jpg
75
+ - doc/rubyrun-0.9.9_files/image012.jpg
76
+ - doc/rubyrun-0.9.9_files/image013.jpg
77
+ - doc/rubyrun-0.9.9_files/image014.jpg
78
+ - doc/rubyrun-0.9.9_files/image015.jpg
79
+ - doc/rubyrun-0.9.9_files/image016.jpg
80
+ - doc/rubyrun-0.9.9_files/image017.png
81
+ - doc/rubyrun-0.9.9_files/image018.jpg
82
+ - doc/rubyrun-0.9.9_files/image019.jpg
83
+ - doc/rubyrun-0.9.9_files/image020.jpg
84
+ - doc/rubyrun-0.9.9_files/image021.jpg
85
+ - doc/rubyrun-0.9.9_files/image022.png
86
+ - doc/rubyrun-0.9.9_files/themedata.thmx
87
+ - etc/rubyrun_opts.yml
88
+ has_rdoc: true
89
+ homepage: http://www.rubysophic.com
90
+ licenses: []
91
+
92
+ post_install_message:
93
+ rdoc_options:
94
+ - --title
95
+ - RubyRun Community Edition
96
+ - --line-numbers
97
+ - --inline-source
98
+ - --main
99
+ - doc/README
100
+ require_paths:
101
+ - .
102
+ - lib
103
+ - lib/rubyrun
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ segments:
109
+ - 0
110
+ version: "0"
97
111
  required_rubygems_version: !ruby/object:Gem::Requirement
98
112
  requirements:
99
- - - '>='
100
- - !ruby/object:Gem::Version
101
- version: "0"
102
- version:
103
- extensions:
104
- - bin/Rakefile
105
- rubygems_version: 1.3.1
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ segments:
116
+ - 0
117
+ version: "0"
106
118
  requirements: []
107
119
 
108
- authors:
109
- - RubySophic Inc
110
- date: 2008-12-19 08:00:00 +00:00
111
- platform: ruby
120
+ rubyforge_project: rubyrunce
121
+ rubygems_version: 1.3.6
122
+ signing_key:
123
+ specification_version: 3
124
+ summary: RubyRun Community Edition is an application performance diagnostic solution for Ruby developers
112
125
  test_files: []
113
126
 
114
- version: !ruby/object:Gem::Version
115
- version: 0.9.9
116
- require_paths:
117
- - .
118
- - lib
119
- - lib/rubyrun
120
- dependencies: []
121
-
122
- bindir: bin
123
- has_rdoc: true