gc_tracer 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -2
- data/ext/gc_tracer/gc_logging.c +1 -1
- data/lib/gc_tracer.rb +1 -1
- data/lib/gc_tracer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72449702ececef1f67fa6c0e8f9ca6866ef994cf
|
4
|
+
data.tar.gz: 20af88df0e79505a407d38a63f45ff88a6adebac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
|
data/ext/gc_tracer/gc_logging.c
CHANGED
@@ -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, "
|
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);
|
data/lib/gc_tracer.rb
CHANGED
@@ -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.
|
35
|
+
self.setup_logging_custom_fields = custom_fields
|
36
36
|
|
37
37
|
if block_given?
|
38
38
|
begin
|
data/lib/gc_tracer/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|