perfetto 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/perfetto/middleware.rb +5 -3
- data/lib/perfetto/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: 58db60a34dfcfd09ccdac3a43a1113bac4c2f07184513049ef0ff19f7aa84648
|
4
|
+
data.tar.gz: b2826c4433783abe3b61ff710168a035faed5ace35bddc62ef7109820d3daa80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d641673e8bcfa06b0cd895e59040c80567550344fffc6e8bf8821ae087c36f4f6e5886e21f7dcf001f8ee8d75f001b2bbba39fc5363a4e3e282c5f0a25b5d697
|
7
|
+
data.tar.gz: 6600f4d0dc9ed167d5aa555faec64de9e9d564385c4c7e83b977d63d3c29a2d207511f1174753e068e8474b645ab51ee1ddc0a42bb0d4e57864f9027bf5ad278
|
data/lib/perfetto/middleware.rb
CHANGED
@@ -27,9 +27,11 @@ module Perfetto
|
|
27
27
|
# rubocop:enable Metrics/MethodLength
|
28
28
|
|
29
29
|
def call(env)
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
if Perfetto::Configure.enable_tracing
|
31
|
+
perfetto_traced_call(env)
|
32
|
+
else
|
33
|
+
@app.call(env)
|
34
|
+
end
|
33
35
|
end
|
34
36
|
end
|
35
37
|
end
|
data/lib/perfetto/version.rb
CHANGED