poise-profiler 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +5 -0
- data/README.md +6 -0
- data/lib/poise_profiler/handler.rb +2 -2
- data/lib/poise_profiler/version.rb +1 -1
- data/test/gemfiles/chef-12.4.gemfile +2 -0
- 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: 49c8eb66b3fe44be2c98d12116db4f5857beb630
|
4
|
+
data.tar.gz: fd85bde56d734b842283b9244f8ab4e89654b287
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2031781bcd4e85f76f0032ff32466aa231b658f2326abda476248040e26a447f76e0a6efcc3397c52f2f1aa8bb9bd00cdb80f7522c891d8e4d21f00a4aae1d98
|
7
|
+
data.tar.gz: 1b9964024659e600d5adcb63b90f6a574f4ffba3fc0e73279d813ca2d5f2c78cacf9f2317b54fac96b3c44e050c96c9ea0e455050f212e43ed8301aabd6a5d23
|
data/.travis.yml
CHANGED
@@ -6,6 +6,7 @@ rvm:
|
|
6
6
|
env:
|
7
7
|
global:
|
8
8
|
- secure: DxJdl4xHPBB3mdM2c0qhdjpxEkWuv0vF9MFrrblSjM3VF5kIkkhSRG+zvyJNg2u+zu76XCEvf+pEt2Ltsl7TzY/AdkeyyhEX2JxcPMkAl5KJmssEQPHkkLowTCK4rfVuakCDjkuXRReSdfH3vBSAX1/SqUZelVZjNV4AZcGHykv5WE0hBmOMGuY9mmsZyg7f91vifCGWk+7SexF+jcuqQh7ZKeJiLcERMdS2K568zkOYZyHXaS+31ic5HW3Jfh929+chg0iSCXL7xhCoUFF4K/aUfi/40LVVHAnBVi0NT/79/KbQBKvYYsCPr0Bw4QqVfRuz6Puxf0FWpLmuRdj1gxvHRKJ18PoKXdET+XsORJV+Qs0EXATR+bzqT9hXSJ16DEaJn8Sx4bA9YqDlBSSGwHqlLj3ql78e5UqkG4yHSLPTjz1uDA+56ZadTLliWR6uFna4HSPx8T4z7FSYMqoLS2Z59I3/JhZ/aSlEnW4FVpQW5XXxz1KVFnOHoz9gGHq+uJChFaAM2mq1MlXzbflpnLe3D/2k2daC0ss4dRrE2jplqpDWwjSK4CrXNRjKiiDr/KScgFYPz7wNg1Acq2hbYXx5J/pTi+sSjZjEUtXRTVzutm9KgLNPlz/MmUamd1maK9APhFdlrOTGFF4fXgE5OeVcSz+lF+Zi8qiXxfUFuvQ=
|
9
|
+
before_install: "gem install bundler"
|
9
10
|
bundler_args: "--binstubs=$PWD/bin --jobs 3 --retry 3"
|
10
11
|
script:
|
11
12
|
- "./bin/rake travis"
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -35,6 +35,12 @@ Profiler JSON: {"resources":{"ruby_block[test]":1.001729177,"file[/test]":0.0063
|
|
35
35
|
Add `recipe[poise-profiler]` to your run list or add `poise-profiler` as a
|
36
36
|
dependency in your `metadata.rb`.
|
37
37
|
|
38
|
+
## JSON Output
|
39
|
+
|
40
|
+
As shown above, JSON output is available for use with graphing or other trend
|
41
|
+
analysis. To enable this either set the environment variable `$CI` or the node
|
42
|
+
attribute `node['CI']`.
|
43
|
+
|
38
44
|
## Sponsors
|
39
45
|
|
40
46
|
Development sponsored by [Bloomberg](http://www.bloomberg.com/company/technology/).
|
@@ -37,13 +37,13 @@ module PoiseProfiler
|
|
37
37
|
timers[:classes][resource.class.name] += resource.elapsed_time
|
38
38
|
end
|
39
39
|
|
40
|
-
def run_completed(
|
40
|
+
def run_completed(node)
|
41
41
|
Chef::Log.debug('Processing poise-profiler data')
|
42
42
|
puts('Poise Profiler:')
|
43
43
|
puts_timer(:resources, 'Resource')
|
44
44
|
puts_timer(:test_resources, 'Test Resource') unless timers[:test_resources].empty?
|
45
45
|
puts_timer(:classes, 'Class')
|
46
|
-
puts("Profiler JSON: #{Chef::JSONCompat.to_json(timers)}")
|
46
|
+
puts("Profiler JSON: #{Chef::JSONCompat.to_json(timers)}") if ENV['CI'] || node['CI']
|
47
47
|
puts('')
|
48
48
|
end
|
49
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poise-profiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Noah Kantrowitz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: halite
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.6.2
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: A Chef cookbook for profiling performance in CI.
|