fiber-profiler 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4eb8511c2bd355496fcb3461944f5fc7881795e7e44d13f4a59497689feaa838
4
- data.tar.gz: 5146ceedbb0f9fc2230b5c3f50b1c0fac9ef2b424078ced732051b6e7e303431
3
+ metadata.gz: 1a4ef2a5d3b1f833810953f991fbbe8aac342b9e757c5ebfadfd695d87036558
4
+ data.tar.gz: '012498a134f5b2c22fad0761090514d577d3ee36143ef568c5e0617b74a46d24'
5
5
  SHA512:
6
- metadata.gz: 427ddb031dc285d0c45c7c1dc72e0793c200b216ca3854272d675ad2cf677c58bf5a7a07bdaf043890f583527fe32ec263b0e12cf53ac11e95a90921e6576013
7
- data.tar.gz: 625fe37c351399c0c1a5588f2577238899b2cad5b3b876d2e4fbe7c76ffdd26865c31111d68c09e04160a369cb0ca149e9c2eb97e1417dacdb7247a5a6b06861
6
+ metadata.gz: 04c655663d123aa94f15f83d7b6a70ab9d81074fe18fb1d870f358756d19a7e91b4eaac4b0b832ed6c649397bf10e4e41b2342abfec1e7bb8e0c652f98630334
7
+ data.tar.gz: 3529cf9a591bcfdd81dcf1a07d71401ab07322e475ec7a0b34b1d3d73080595cbc2b81419c1c7d9abe6341d163bcaaf1ac2017aed9e5d0d7af1847d15d704a88
checksums.yaml.gz.sig CHANGED
Binary file
@@ -10,6 +10,9 @@ module Fiber::Profiler
10
10
  # Thread-local storage for the active profiler capture.
11
11
  ::Thread.attr_accessor :fiber_profiler_capture
12
12
 
13
+ # Hook into Process._fork to handle fork events automatically.
14
+ ::Process.singleton_class.prepend(ForkHandler)
15
+
13
16
  # Private module that wraps start/stop to manage thread-local storage.
14
17
  module ThreadLocalCapture
15
18
  # Start profiling and store the capture in the current thread's thread-local storage.
@@ -27,7 +27,4 @@ module Fiber::Profiler
27
27
  end
28
28
 
29
29
  private_constant :ForkHandler
30
-
31
- # Hook into Process._fork to handle fork events automatically:
32
- ::Process.singleton_class.prepend(ForkHandler)
33
30
  end
@@ -7,6 +7,6 @@
7
7
  class Fiber
8
8
  # @namespace
9
9
  module Profiler
10
- VERSION = "0.6.0"
10
+ VERSION = "0.6.1"
11
11
  end
12
12
  end
@@ -4,8 +4,7 @@
4
4
  # Copyright, 2025-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "profiler/version"
7
- require_relative "profiler/native"
8
- require_relative "profiler/fork_handler"
7
+ require_relative "profiler/capture"
9
8
 
10
9
  module Fiber::Profiler
11
10
  # The default profiler to use, if any.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiber-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file