bench_bloc 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bench_bloc/helpers/ruby_prof_helpers.rb +18 -17
- data/lib/bench_bloc/version.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: c9ed9fc9d6291808d0de75f00701b4c453a7d26529ff78c6511dfa9a5d6937ce
|
4
|
+
data.tar.gz: b8a69469b69139415940425d195cb26369c35b608731f7ebe9e44d7edde60bda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b742cce101868b339565ba772aa3cc1604690a873464ac187e157c3d02a50f04ce6b0026059f066776337628852b47d841b1209e330a25065ae5e4cf39d0d214
|
7
|
+
data.tar.gz: ef26710006c965215399f6cb146ecc7395b0b3dfa86978783a3885030850d0842283517885a9a90e4f6f549330fef78c6bfe8dee541be7776e0a7f7dae4303fd
|
@@ -1,20 +1,21 @@
|
|
1
|
-
|
2
|
-
def run_ruby_prof lam, args
|
3
|
-
# RubyProf.start
|
4
|
-
# lam.call args
|
5
|
-
# RubyProf.end
|
6
|
-
end
|
1
|
+
module RubyProfHelpers
|
2
|
+
def run_ruby_prof lam, args
|
3
|
+
# RubyProf.start
|
4
|
+
# lam.call args
|
5
|
+
# RubyProf.end
|
6
|
+
end
|
7
7
|
|
8
|
-
def format_ruby_prof res
|
9
|
-
# "Formatted Ruby Prof Results: #{res}"
|
10
|
-
end
|
8
|
+
def format_ruby_prof res
|
9
|
+
# "Formatted Ruby Prof Results: #{res}"
|
10
|
+
end
|
11
11
|
|
12
|
-
def log_ruby_prof_results
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
12
|
+
def log_ruby_prof_results
|
13
|
+
# prof = RubyProf::Profile.new()
|
14
|
+
# prof.exclude_common_methods!
|
15
|
+
# validator = ValidationRules::TsValidatorService.new(ts)
|
16
|
+
# complex_rules = validator.get_complex_validation_rules
|
17
|
+
# binding.pry
|
18
|
+
# results = prof.profile { validator.run_complex_vr(complex_rules[0]) }
|
19
|
+
# log_prof_results results
|
20
|
+
end
|
20
21
|
end
|
data/lib/bench_bloc/version.rb
CHANGED