sqreen 1.16.0 → 1.16.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88700ab65a0ac3080eb109fff2ab757f69da29f2a875bfa054a6ac89f6068ad4
4
- data.tar.gz: 01f4d1e68fce364d10c4e54f37ef32e1b8490d36118d9cbe74488743ec3f6a31
3
+ metadata.gz: f14c1978c48e3db55da6c20eb782a5313066c357038b215821652be20bec7a90
4
+ data.tar.gz: 91eee47349717f3d760ede2086586a3ab009449acadcdbb4b4120586afe7601c
5
5
  SHA512:
6
- metadata.gz: dcba32ae629498dce1051f3d9878ce974244622f967a7dd51fe9a5208c770fb4aef27f3aa502fe2033cc0ba1e8e94a2d28550777a1293184f7c86bc1bb0e266e
7
- data.tar.gz: e8753a65ad853c63f6a0d18de2f453b7840db8a2b2fb24add9616cadf4e9e495d3d97dc33bc6c7b8d0d2d0460e2f48a98ef4216e984fd91c4c0b8d5db5fa7e63
6
+ metadata.gz: 2c92239048effb55846ac2777d59f92b73295d13548cc881ccd6686a4191d7691a4238a59f94820d99eb01f5435d8874d7afdb60518cafb0c4337b317969a18b
7
+ data.tar.gz: 3c2f2413eb44ede4c346f07d9956cd49b511cad33e6f8c0962c41cb34ef146bf973eb02861ce0984b486ea43a6dcd80f4848450d74c990447926b5c93bbf3684
@@ -3,7 +3,8 @@ require 'json'
3
3
 
4
4
  module Sqreen
5
5
  module Js
6
- GC_MINI_RACER = 10_000
6
+ DEFAULT_GC_THRESHOLD = 15000000 # 15 MB
7
+
7
8
 
8
9
  class MiniRacerAdapter < JsServiceAdapter
9
10
  def initialize(vendored = false)
@@ -65,13 +66,13 @@ module Sqreen
65
66
  if context.gc_load > 30
66
67
  if context.gc_threshold_in_bytes == DEFAULT_GC_THRESHOLD
67
68
  context.gc_threshold_in_bytes *= 2
68
- Sqreen.log.warn('Context %s had too many close garbage collections; ' \
69
- 'doubling the threshold to %d bytes',
70
- context, context.gc_threshold_in_bytes)
69
+ Sqreen.log.warn("Context #{context} had too many close garbage " \
70
+ 'collections; doubling the threshold to ' \
71
+ "#{context.gc_threshold_in_bytes} bytes")
71
72
  context.gc_load = 0
72
73
  else
73
- Sqreen.log.warn('Context %s had too many close garbage ' \
74
- 'collections; discarding it', context)
74
+ Sqreen.log.warn("Context #{context} had too many close garbage " \
75
+ 'collections; discarding it')
75
76
  context.dispose
76
77
  return
77
78
  end
@@ -126,8 +127,6 @@ module Sqreen
126
127
  private
127
128
 
128
129
  class << self
129
- DEFAULT_GC_THRESHOLD = 15000000 # 15 MB
130
-
131
130
  def define_sqreen_context(modoole)
132
131
  # Context specialized for Sqreen usage
133
132
  Sqreen::Js.const_set 'SqreenContext', Class.new(modoole.const_get('Context'))
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
2
  # Please refer to our terms for more information: https://www.sqreen.io/terms.html
3
3
  module Sqreen
4
- VERSION = '1.16.0'.freeze
4
+ VERSION = '1.16.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sqreen