pry-auto_benching.rb 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/pry-auto_benching/version.rb +1 -1
- data/lib/pry-auto_benching.rb +1 -1
- 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: 753fe74a59e736a2a2dcd5c4bbcddb12c4ec9fccca50ff75ebe71c4945b8026d
|
4
|
+
data.tar.gz: a9d4125ddb6433f9e10bc212eb9faecd7bb964fa3dfd6361a068da5ff9a2532e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 935e069ba94dcc3ad60e8fa6b91a0578d77554357a9049557254d0df5a493ca13e54f0a17d82b099ab1ba450c92ba1f1f829f1f2317aa98b1990e97402a8890a
|
7
|
+
data.tar.gz: 5d22c660869cea64666734740718ab0a8f98342b3a746cdbde0e89b125cce3af234b410751cb138cc6d89397289f39578db76abdbdeef3b969803a07e98f836d
|
data/README.md
CHANGED
@@ -24,8 +24,8 @@ Pry.configure do |config|
|
|
24
24
|
config.auto_benching.target_display = ':prompt | :output'
|
25
25
|
|
26
26
|
# Benchmark results are printed or not depending on the return value
|
27
|
-
# of this lambda, by default results are printed when duration
|
28
|
-
config.auto_benching.display_duration_if = ->(pry, duration) { duration >= 0.
|
27
|
+
# of this lambda, by default results are printed when duration >= 0.01.
|
28
|
+
config.auto_benching.display_duration_if = ->(pry, duration) { duration >= 0.02 }
|
29
29
|
|
30
30
|
# The color to use for benchmark results when `target_display` is :prompt.
|
31
31
|
# The default is :green.
|
data/lib/pry-auto_benching.rb
CHANGED
@@ -103,7 +103,7 @@ Pry.configure do |config|
|
|
103
103
|
target_display: :prompt,
|
104
104
|
prompt_color: :green,
|
105
105
|
clock_type: Process::CLOCK_MONOTONIC,
|
106
|
-
display_duration_if: ->(pry, duration) { duration
|
106
|
+
display_duration_if: ->(pry, duration) { duration >= 0.01 },
|
107
107
|
benchmark_commands: true,
|
108
108
|
output_string: ->(pry, duration) {
|
109
109
|
format("%{TextDesc} %{Duration}s", {
|