perfetto 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a32a441d8046750cb3a306de9a3081e07fecd7c1223d53f7151db609d23f43d
4
- data.tar.gz: 8dc578f6032ef6fb709b5a60b2fddf38afea8aa8f877cc27964f0db37dc52948
3
+ metadata.gz: 477238494f1ee984318147d893a338e51581ef6213cc8ff59463459a45db90c8
4
+ data.tar.gz: 80c30864e15aa47b948c5090fbe7e635e0479e58762a177150343f70f2e69509
5
5
  SHA512:
6
- metadata.gz: 29d28eb4c2153d6d798d0f9e17cd91e20dc68c6eb30af3d30210b39d96570a8494adedb0a2b01f9fddf68325bbdb365eb90b731d7c5560f9234a526455003b93
7
- data.tar.gz: 585e6f74925e4c56cf1b524f1960d479ca9b5641dd7dff779225553512a51d7a4b970ba523de3554fa8f8debd5a975a8f71d817b59ecd10af34144d7548c0221
6
+ metadata.gz: 6bd5ea8ddececb799f9d0dc2af6c74197e423f38993de563d6c413ea192d31b799a9f9e7e0c46643f2c65e1915ee5c0c12560cfc4872d226b453ddb23e38def0
7
+ data.tar.gz: 93136f43996f10bd68ccb472a0dcef3c42196f96dfa789a4ec3a2140ef554c3c917b56ac76d1c5f95c1487104549105cb68c724a2afca6958610c702aee85e19
data/example/example.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # rubocop:disable Naming/MethodParameterName
4
+ # rubocop:disable Style/Documentation
4
5
 
5
6
  require "perfetto"
6
7
 
@@ -62,3 +63,4 @@ end
62
63
  Perfetto.stop_tracing "example.pftrace"
63
64
 
64
65
  # rubocop:enable Naming/MethodParameterName
66
+ # rubocop:enable Style/Documentation
@@ -15,8 +15,9 @@ module Perfetto
15
15
  alias_method "pftrace_#{method_name}", method_name
16
16
  define_method(method_name) do |*args, **kwargs, &block|
17
17
  Perfetto.trace_event_begin self.class.name, method_name.to_s
18
- original_method.bind(self).call(*args, **kwargs, &block)
18
+ ret = original_method.bind(self).call(*args, **kwargs, &block)
19
19
  Perfetto.trace_event_end self.class.name
20
+ ret
20
21
  end
21
22
  end
22
23
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Perfetto
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perfetto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kowalski Dark