perfetto 0.1.11 → 0.1.12

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: fa34fc72b715303e45a712c8815234d4d517deb7753053e986cb138cc82fc221
4
- data.tar.gz: 2a4e83ae9d9cc6ab5d3b383410614ce79063f5c75a828612410126adf70838a7
3
+ metadata.gz: f1703b5e29ea5135fb1d55a8f5a4d3b2ba1ed0c397a85274a700ffd370f110dd
4
+ data.tar.gz: 440649044324d23495d3802b4df9310dd859edd83a7cc5a67d2fb3200c41fc8e
5
5
  SHA512:
6
- metadata.gz: b6a8ab3b7774b77bbd0f6e39e4cc080e1440eb9b42910caae31fd411c2d52b45afb15ae48d869288346da825fcdb618c63d92157b1f1c05027978f121effd353
7
- data.tar.gz: 897a2379f16acccf7cf48e25b211d689d7d45eb75b8f01b2997121b42768223071524dc599a1aebae007d491a407ab376895fa30a68880f5f629ee60c5b2ecf0
6
+ metadata.gz: a8a59e7311ca3b3b8a5fb20b3a4db5a0d1c8e46f46e9dfa71336ba61580846dae1a2e8c502d9e212ee79fd2a15e67f4042a89553f5a1a43464ea4129884543ef
7
+ data.tar.gz: 36b179562bc9fca236d3969d052fc577914d583a607eb5c219a04361e59736162d8f79e13e4a9c3beab9cfb18ee7c611a066be4bcdb6b1e04fae2a84234148fe
@@ -7,7 +7,7 @@ module Perfetto
7
7
  # To intercept method calls in other classes
8
8
  module Interceptor
9
9
  def self.included(base)
10
- if Perfetto::Configure.enable_tracing
10
+ if Perfetto::Configure.enable_tracing?
11
11
  base.extend ImplMethods
12
12
  else
13
13
  base.extend StubMethods
@@ -27,7 +27,7 @@ module Perfetto
27
27
  # rubocop:enable Metrics/MethodLength
28
28
 
29
29
  def call(env)
30
- if Perfetto::Configure.enable_tracing
30
+ if Perfetto::Configure.enable_tracing?
31
31
  perfetto_traced_call(env)
32
32
  else
33
33
  @app.call(env)
@@ -7,7 +7,7 @@ module Perfetto
7
7
  alias stop_tracing_native stop_tracing
8
8
  end
9
9
 
10
- if Perfetto::Configure.enable_tracing
10
+ if Perfetto::Configure.enable_tracing?
11
11
  # Default arguments implemented in this wrapper
12
12
  def self.start_tracing
13
13
  start_tracing_native Configure.buffer_size_kb
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Perfetto
4
- VERSION = "0.1.11"
4
+ VERSION = "0.1.12"
5
5
  end
data/lib/perfetto.rb CHANGED
@@ -19,6 +19,8 @@ module Perfetto
19
19
  Configure.enable_tracing = enable_tracing unless enable_tracing.nil?
20
20
  Configure.buffer_size_kb = buffer_size_kb unless buffer_size_kb.nil?
21
21
 
22
+ warn "Perfetto Tracing is #{Configure.enable_tracing? ? "enabled" : "disabled"}"
23
+
22
24
  # Native extension
23
25
  require_relative "perfetto/perfetto_native"
24
26
  # Ruby wrapper
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perfetto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kowalski Dark
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-04 00:00:00.000000000 Z
11
+ date: 2024-01-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Yet another event tracing library for Ruby.
14
14
  email: