gc_tracer 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: beddc99ca9887bd0818495453c1c587c30dceecb
4
- data.tar.gz: 55df7c2c08f28f54ade7963a78136f926483605b
3
+ metadata.gz: 72449702ececef1f67fa6c0e8f9ca6866ef994cf
4
+ data.tar.gz: 20af88df0e79505a407d38a63f45ff88a6adebac
5
5
  SHA512:
6
- metadata.gz: fe0403d3dc7f150d06425466a4ffc200ba79571c2ce06e02d53fde522a8f249234583608f903a9721f20e64f3e208cac2acdd2931c0e040de8a7aa34d7358b5d
7
- data.tar.gz: 6796d7e2bb903d7b477ca2544ce7bd7eb62c611a079814fd31ca7ad02c2b8679a089f6cce0b2d6570863809ad868b8c9d9e4c3ede19a164309b1c3fbdce68731
6
+ metadata.gz: ce1cf7d5a541f133205678f316325cef2692e77f2908493688057f6928b6c0ff1b6fc4f22171bad06819d5f8a8aaee23e825d2af3fe0dd3938f678aaed3a5420
7
+ data.tar.gz: 97432b439e573d43e098a950b1ea06f89d419ecfb4f084dbadd39fcfbb13443a8a549267520c139b58e1661f4245cab9f22da4db9bff85e9cc2f9130eaa96622
data/README.md CHANGED
@@ -61,7 +61,7 @@ In the stored file (filename), you can get tab separated values of:
61
61
  * `GC.stat()`
62
62
  * `GC.latest_gc_info()`
63
63
  * `getrusage()` (if supported by system)
64
- * Custom fields (described bloew)
64
+ * Custom fields (described below)
65
65
 
66
66
  at each events, there are one of:
67
67
 
@@ -178,10 +178,20 @@ In this case, you can access two pages.
178
178
  * http://host/gc_tracer - HTML table style page
179
179
  * http://host/gc_tracer/text - plain text page
180
180
 
181
+ This Rack middleware supports one custom field *access* to count accesses number.
182
+
183
+ The following pages are demonstration Rails app on Heroku environment.
184
+
185
+ * http://protected-journey-7206.herokuapp.com/gc_tracer
186
+ * http://protected-journey-7206.herokuapp.com/gc_tracer/text
187
+
188
+ Source code of this demo app is https://github.com/ko1/tracer_demo_rails_app.
189
+ You only need to modify like https://github.com/ko1/tracer_demo_rails_app/blob/master/config.ru to use it on Rails.
190
+
181
191
  You can pass two options.
182
192
 
183
193
  * filename: File name of GC Tracer log
184
- * view_page_path: You can view GC tracer log with this path *if logging_filename is given*. You should not use this option on production.
194
+ * view_page_path: You can view GC tracer log with this path *if a logging filename is given* (by an env val or a filename keyword argument). You may not use this option on production.
185
195
 
186
196
  And also you can pass all options of `GC::Tracer.start_logging`.
187
197
 
@@ -734,7 +734,7 @@ Init_gc_tracer_logging(VALUE mod)
734
734
  rb_define_module_function(mod, "setup_logging_rusage=", gc_tracer_setup_logging_rusage, 1);
735
735
 
736
736
  /* custom fields */
737
- rb_define_module_function(mod, "setup_looging_custom_fields=", gc_tracer_setup_logging_custom_fields, 1);
737
+ rb_define_module_function(mod, "setup_logging_custom_fields=", gc_tracer_setup_logging_custom_fields, 1);
738
738
  rb_define_module_function(mod, "custom_field_increment", gc_tracer_custom_field_increment, 1);
739
739
  rb_define_module_function(mod, "custom_field_decrement", gc_tracer_custom_field_decrement, 1);
740
740
  rb_define_module_function(mod, "custom_field_set", gc_tracer_custom_field_set, 2);
@@ -32,7 +32,7 @@ module GC
32
32
  self.setup_logging_gc_latest_gc_info = gc_latest_gc_info
33
33
  self.setup_logging_rusage = rusage
34
34
  self.setup_logging_tick_type = tick_type
35
- self.setup_looging_custom_fields = custom_fields
35
+ self.setup_logging_custom_fields = custom_fields
36
36
 
37
37
  if block_given?
38
38
  begin
@@ -1,3 +1,3 @@
1
1
  module GC::Tracer
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gc_tracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi Sasada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-15 00:00:00.000000000 Z
11
+ date: 2015-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.4.5
117
+ rubygems_version: 2.5.0
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: gc_tracer gem adds GC::Tracer module.