smpl_prflr 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smpl_prflr.rb +3 -4
- data/smpl_prflr.gemspec +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: 4aa1604560c3f6c646b15211198c683537c74896a312c96befbd675caad9c02b
|
4
|
+
data.tar.gz: dc74c4b885f3edded7964add212c8a8063714fc6c7bda30c3a0129fb2795bb16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03f4ee75268ef2a8c3870b002d2ddf55f6f217c788f719540ea7f6bc8a469bbd2d5fbcb10484d5654f9867bfe21a46aaa5635d9bb0428ae73863c4b58eaf55cf
|
7
|
+
data.tar.gz: 5af5cca8a5e42bbaa947c7f36997a64ddd16f971ee6b07c69ba599aecdd4e26b289b17441c4c538b32dbeeaac6fc274b407e6563b30a4e5063f38014e930a199
|
data/lib/smpl_prflr.rb
CHANGED
@@ -55,15 +55,14 @@ class SmplPrflr
|
|
55
55
|
# @author KILYA
|
56
56
|
# Profile block of your code
|
57
57
|
# @return [nil]
|
58
|
-
def p
|
59
|
-
profiled = ""
|
58
|
+
def p(prof: "")
|
60
59
|
result = RubyProf.profile do
|
61
60
|
yield
|
62
61
|
end
|
63
62
|
|
64
63
|
printer = RubyProf::FlatPrinter.new(result)
|
65
|
-
printer.print(
|
66
|
-
@redis.set(:profile,
|
64
|
+
printer.print(prof, min_percent: 0)
|
65
|
+
@redis.set(:profile, prof)
|
67
66
|
|
68
67
|
nil
|
69
68
|
rescue StandardError => e
|
data/smpl_prflr.gemspec
CHANGED