newrelic_rpm 3.1.0.beta4 → 3.1.0.beta5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of newrelic_rpm might be problematic. Click here for more details.

@@ -153,6 +153,12 @@ module Agent
153
153
  elapsed = (gc_time - @last_gc_timestamp).to_f
154
154
  @last_gc_timestamp = gc_time
155
155
  @last_gc_count = gc_collections
156
+
157
+ if defined?(GC::Profiler)
158
+ GC::Profiler.clear
159
+ @last_gc_timestamp = 0
160
+ end
161
+
156
162
  if num_calls > 0
157
163
  # µs to seconds
158
164
  elapsed = elapsed / 1000000.0
@@ -17,8 +17,16 @@ module NewRelic
17
17
 
18
18
  private
19
19
 
20
+ def open_arguments
21
+ if defined?(Encoding)
22
+ [file_path, File::RDWR | File::CREAT, {:internal_encoding => nil}]
23
+ else
24
+ [file_path, File::RDWR | File::CREAT]
25
+ end
26
+ end
27
+
20
28
  def with_locked_store
21
- File.open(file_path, File::RDWR | File::CREAT) do |f|
29
+ File.open(*open_arguments) do |f|
22
30
  f.flock(File::LOCK_EX)
23
31
  begin
24
32
  yield(f)
@@ -27,7 +35,8 @@ module NewRelic
27
35
  end
28
36
  end
29
37
  rescue Exception => e
30
- puts e.inspect
38
+ NewRelic::Control.instance.log.error("Error serializing data to disk: #{e.inspect}")
39
+ NewRelic::Control.instance.log.debug(e.backtrace.split("\n"))
31
40
  end
32
41
 
33
42
  def get_data_from_file(f)
@@ -4,7 +4,7 @@ module NewRelic
4
4
  MAJOR = 3
5
5
  MINOR = 1
6
6
  TINY = 0
7
- BUILD = 'beta4' #'0' # Set to nil for a release, 'beta1', 'alpha', etc for prerelease builds
7
+ BUILD = 'beta5' #'0' # Set to nil for a release, 'beta1', 'alpha', etc for prerelease builds
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
10
10
 
data/newrelic_rpm.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{newrelic_rpm}
8
- s.version = "3.1.0.beta4"
8
+ s.version = "3.1.0.beta5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Bill Kayser", "Justin George"]
12
- s.date = %q{2011-06-06}
11
+ s.authors = ["Bill Kayser", "Justin George", "Jon Guymon"]
12
+ s.date = %q{2011-06-10}
13
13
  s.description = %q{New Relic is a performance management system, developed by New Relic,
14
14
  Inc (http://www.newrelic.com). New Relic provides you with deep
15
15
  information about the performance of your web application as it runs
@@ -24,7 +24,7 @@ class NewRelic::ControlTest < Test::Unit::TestCase
24
24
 
25
25
  s = TCPSocket.new 'collector.newrelic.com', 443
26
26
  ctx = OpenSSL::SSL::SSLContext.new
27
- ctx.ca_path = @c.cert_file_path
27
+ ctx.ca_file = @c.cert_file_path
28
28
  ctx.verify_mode = OpenSSL::SSL::VERIFY_PEER
29
29
  s = OpenSSL::SSL::SSLSocket.new s, ctx
30
30
  s.connect
metadata CHANGED
@@ -1,24 +1,24 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_rpm
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196443
5
- prerelease: 6
4
+ hash: -1848230031
5
+ prerelease: true
6
6
  segments:
7
7
  - 3
8
8
  - 1
9
9
  - 0
10
- - beta
11
- - 4
12
- version: 3.1.0.beta4
10
+ - beta5
11
+ version: 3.1.0.beta5
13
12
  platform: ruby
14
13
  authors:
15
14
  - Bill Kayser
16
15
  - Justin George
16
+ - Jon Guymon
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2011-06-06 00:00:00 -07:00
21
+ date: 2011-06-10 00:00:00 -07:00
22
22
  default_executable:
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
@@ -391,7 +391,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
391
391
  requirements: []
392
392
 
393
393
  rubyforge_project:
394
- rubygems_version: 1.4.2
394
+ rubygems_version: 1.3.7
395
395
  signing_key:
396
396
  specification_version: 3
397
397
  summary: New Relic Ruby Agent