Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmm1/gctools
profiler/logger/oobgc for rgengc in ruby 2.1
https://github.com/tmm1/gctools
Last synced: 5 days ago
JSON representation
profiler/logger/oobgc for rgengc in ruby 2.1
- Host: GitHub
- URL: https://github.com/tmm1/gctools
- Owner: tmm1
- License: mit
- Created: 2013-12-10T01:04:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-03-20T22:43:35.000Z (over 6 years ago)
- Last Synced: 2024-10-20T20:27:13.969Z (23 days ago)
- Language: C
- Homepage:
- Size: 23.4 KB
- Stars: 258
- Watchers: 11
- Forks: 23
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## gctools
gc profiler/logger and oobgc for rgengc in ruby 2.1
### design
built on new apis and events offered in ruby 2.1:
* rb_gc_stat()
* rb_gc_latest_gc_info()
* RUBY_INTERNAL_EVENT_GC_START
* RUBY_INTERNAL_EVENT_GC_END_MARK
* RUBY_INTERNAL_EVENT_GC_END_SWEEP### usage
#### logger
``` ruby
require 'gctools/logger'
```#### oobgc
``` ruby
require 'gctools/oobgc'
GC::OOB.run # after every request
use(GC::OOB::UnicornMiddleware) # in config.ru for unicorn
```