stable_profile 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stable_profile.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a59002ea5da6a514556069ad4094c316d59c1affc362d6f5cd3ea1afc21e697
|
4
|
+
data.tar.gz: 6a06ffeb62d321301e169248a94f8b76578dfa3f05683a76347e7152d5099fbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6a899e53d5404cab959c4b6ac5d54b8564e22ccfbc2a138fb10d0ddaf16eb089240d341bfda3601ae368dd9a4c20740e5e2b20d2c4e3876f8dc3047fc1b4741
|
7
|
+
data.tar.gz: e002f7bc8cab5643c276d0af9ad9ecfd66ed45c42a9763ab4299dcd8e359c987a1cd6ee99745460faae05d5226b5126397a1dc793b7fafcaad24bd1d8f1505a2
|
data/lib/stable_profile.rb
CHANGED
@@ -76,7 +76,7 @@ module StableProfile
|
|
76
76
|
puts "Top #{top_slowest_examples} slowest examples:"
|
77
77
|
count = 0
|
78
78
|
example_times.sort_by { |id, record| record[:average_time] }.reverse.each do |id, record|
|
79
|
-
next if count ==
|
79
|
+
next if count == top_slowest_examples
|
80
80
|
next if record[:run_times].size < minimum_sample_size
|
81
81
|
count += 1
|
82
82
|
|
@@ -90,7 +90,7 @@ module StableProfile
|
|
90
90
|
puts "Top #{top_slowest_examples} slowest example groups:"
|
91
91
|
count = 0
|
92
92
|
group_times.sort_by { |id, record| record[:average_time] }.reverse.each do |id, record|
|
93
|
-
next if count ==
|
93
|
+
next if count == top_slowest_examples
|
94
94
|
next if record[:run_times].size < minimum_sample_size
|
95
95
|
count += 1
|
96
96
|
|