rbtrace_extended 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 95042d9e477e1f97d9b8991e9ae58775a2bca8906ab9561571d5d243431ccc97
4
+ data.tar.gz: aff59a6407b321d67dbdcd06a3a5341ad677d7aed332dae33697c20f10d42e10
5
+ SHA512:
6
+ metadata.gz: 0d00776b0b9ed20867f2cba4b84a501241dcbf010d19165186f8dd9c23f4b0867ca7f3aae3a8d6d3b1fa857aa13314e80f2dd1cbf57b88e1c2b3eb410ae314c2
7
+ data.tar.gz: 48f0ee32d78282310f8ddfc552307083af65ab92cd4905483fd2a906dbbf76fabe9a3c73db99d0c2b6bfa6f90a0d8fe832ed74af5d18092855dba6ee0a6dcf13
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ rbtrace_extended-0.1.0.gem
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in rbtrace_extended.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,28 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rbtrace_extended (0.1.0)
5
+ rbtrace
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ffi (1.9.18)
11
+ msgpack (1.2.4)
12
+ rake (10.5.0)
13
+ rbtrace (0.4.10)
14
+ ffi (>= 1.0.6)
15
+ msgpack (>= 0.4.3)
16
+ trollop (>= 1.16.2)
17
+ trollop (2.1.2)
18
+
19
+ PLATFORMS
20
+ ruby
21
+
22
+ DEPENDENCIES
23
+ bundler (~> 1.16)
24
+ rake (~> 10.0)
25
+ rbtrace_extended!
26
+
27
+ BUNDLED WITH
28
+ 1.16.1
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Clint Modien
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # RbtraceExtended
2
+
3
+ require's rbtrace and optionally requires objspace and calls ObjectSpace.trace_object_allocations_start
4
+
5
+ ```
6
+ require 'rbtrace'
7
+
8
+ if ENV['OBJECTSPACE_TRACE_OBJECT_ALLOCATIONS'] then
9
+ require 'objspace'
10
+ ObjectSpace.trace_object_allocations_start
11
+ end
12
+
13
+ ```
14
+
15
+ ## Installation
16
+
17
+ Add this line to your application's Gemfile:
18
+
19
+ ```ruby
20
+ gem 'rbtrace_extended'
21
+ ```
22
+
23
+ And then execute:
24
+
25
+ $ bundle
26
+
27
+ Or install it yourself as:
28
+
29
+ $ gem install rbtrace_extended
30
+
31
+ ## Usage
32
+
33
+ By requiring this gem it will automatically require rbtrace.
34
+ You can add an environment variable `OBJECTSPACE_TRACE_OBJECT_ALLOCATIONS=1` to also call `ObjectSpace.trace_object_allocations_start`.
35
+ This will let you get object allocations when performing a heap dump with rbtrace.
36
+
37
+ ## Development
38
+
39
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
40
+
41
+ ## Contributing
42
+
43
+ Bug reports and pull requests are welcome on GitHub at https://github.com/clintmod/rbtrace_extended.
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,3 @@
1
+ module RbtraceExtended
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,6 @@
1
+ require 'rbtrace'
2
+
3
+ if ENV['OBJECTSPACE_TRACE_OBJECT_ALLOCATIONS'] then
4
+ require 'objspace'
5
+ ObjectSpace.trace_object_allocations_start
6
+ end
@@ -0,0 +1,28 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "rbtrace_extended/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rbtrace_extended"
8
+ spec.version = RbtraceExtended::VERSION
9
+ spec.authors = ["Clint Modien"]
10
+ spec.email = ["cmodien@gmail.com"]
11
+
12
+ spec.summary = "require's rbtrace and optionally requires objspace and calls ObjectSpace.trace_object_allocations_start"
13
+ spec.homepage = "https://github.com/clintmod/rbtrace_extended"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
+ f.match(%r{^(test|spec|features)/})
17
+ end
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency "rbtrace"
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.16"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+
27
+ spec.required_ruby_version = '>= 2.1'
28
+ end
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rbtrace_extended
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Clint Modien
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-08-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rbtrace
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description:
56
+ email:
57
+ - cmodien@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - Gemfile
64
+ - Gemfile.lock
65
+ - LICENSE
66
+ - README.md
67
+ - Rakefile
68
+ - lib/rbtrace_extended.rb
69
+ - lib/rbtrace_extended/version.rb
70
+ - rbtrace_extended.gemspec
71
+ homepage: https://github.com/clintmod/rbtrace_extended
72
+ licenses: []
73
+ metadata: {}
74
+ post_install_message:
75
+ rdoc_options: []
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '2.1'
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ requirements: []
89
+ rubyforge_project:
90
+ rubygems_version: 2.7.6
91
+ signing_key:
92
+ specification_version: 4
93
+ summary: require's rbtrace and optionally requires objspace and calls ObjectSpace.trace_object_allocations_start
94
+ test_files: []