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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c4121de1444f8d900412e5fa08425fc94af606d
4
- data.tar.gz: 31ad0ad9a4ee891a07f0487597cb16b9eb7521a4
3
+ metadata.gz: 49c8eb66b3fe44be2c98d12116db4f5857beb630
4
+ data.tar.gz: fd85bde56d734b842283b9244f8ab4e89654b287
5
5
  SHA512:
6
- metadata.gz: a0ed66a62b7954da85a5247c5509955054743def165fe261bd253c193cb6b4255dc6e266fef4dd28f5e3b4dcbd483eb6acd4a1b2481ae699221c91c93a32f25c
7
- data.tar.gz: f6c2d0ef38d2c1a2a7ed0adcdbad095594ce4f014e9f43af27bb20467c76b4bcaf5f072d36dceadf26465297847f9a94df592e933f6ab549b2d2680e587019fb
6
+ metadata.gz: 2031781bcd4e85f76f0032ff32466aa231b658f2326abda476248040e26a447f76e0a6efcc3397c52f2f1aa8bb9bd00cdb80f7522c891d8e4d21f00a4aae1d98
7
+ data.tar.gz: 1b9964024659e600d5adcb63b90f6a574f4ffba3fc0e73279d813ca2d5f2c78cacf9f2317b54fac96b3c44e050c96c9ea0e455050f212e43ed8301aabd6a5d23
@@ -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"
@@ -1,5 +1,10 @@
1
1
  # Poise-Profiler Changelog
2
2
 
3
+ ## v1.0.1
4
+
5
+ * Only display JSON on CI. This can be set via either an environment variable or
6
+ node attribute.
7
+
3
8
  ## v1.0.0
4
9
 
5
10
  * Initial release! Core reporting structure is in place, more useful data later.
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(_node)
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
 
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoiseProfiler
19
- VERSION = '1.0.0'
19
+ VERSION = '1.0.1'
20
20
  end
@@ -17,3 +17,5 @@
17
17
  eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
18
18
 
19
19
  gem 'chef', '~> 12.4.3'
20
+ # Pending https://github.com/berkshelf/ridley/pull/335
21
+ gem 'ridley', '4.4.1'
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.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-01-28 00:00:00.000000000 Z
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.4.8
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.