Skip to content

Commit 6dd1f97

Browse files
committedFeb 10, 2025··
Bump minor version.
1 parent 3d52925 commit 6dd1f97

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed
 

‎lib/io/event/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
class IO
88
# @namespace
99
module Event
10-
VERSION = "1.8.4"
10+
VERSION = "1.9.0"
1111
end
1212
end

‎readme.md

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ Please see the [project documentation](https://socketry.github.io/io-event/) for
1818

1919
Please see the [project releases](https://socketry.github.io/io-event/releases/index) for all releases.
2020

21+
### v1.9.0
22+
23+
- [Improved `IO::Event::Profiler` for detecting stalls.](https://socketry.github.io/io-event/releases/index#improved-io::event::profiler-for-detecting-stalls.)
24+
2125
### v1.8.0
2226

2327
- [Detecting fibers that are stalling the event loop.](https://socketry.github.io/io-event/releases/index#detecting-fibers-that-are-stalling-the-event-loop.)

‎releases.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Releases
22

3-
## Unreleased
3+
## v1.9.0
44

55
### Improved `IO::Event::Profiler` for detecting stalls.
66

77
A new `IO::Event::Profiler` class has been added to help detect stalls in the event loop. The previous approach was insufficient to detect all possible stalls. This new approach uses the `RUBY_EVENT_FIBER_SWITCH` event to track context switching by the scheduler, and can detect stalls no matter how they occur.
88

9-
```ruby
9+
``` ruby
1010
profiler = IO::Event::Profiler.new
1111

1212
profiler.start
@@ -20,9 +20,9 @@ profiler.stop
2020

2121
A default profiler is exposed using `IO::Event::Profiler.default` which is controlled by the following environment variables:
2222

23-
- `IO_EVENT_PROFILER=true` - Enable the profiler, otherwise `IO::Event::Profiler.default` will return `nil`.
24-
- `IO_EVENT_PROFILER_LOG_THRESHOLD` - Specify the threshold in seconds for logging a stall. Defaults to `0.01`.
25-
- `IO_EVENT_PROFILER_TRACK_CALLS` - Track the method call for each event, in order to log specifically which method is causing the stall. Defaults to `true`.
23+
- `IO_EVENT_PROFILER=true` - Enable the profiler, otherwise `IO::Event::Profiler.default` will return `nil`.
24+
- `IO_EVENT_PROFILER_LOG_THRESHOLD` - Specify the threshold in seconds for logging a stall. Defaults to `0.01`.
25+
- `IO_EVENT_PROFILER_TRACK_CALLS` - Track the method call for each event, in order to log specifically which method is causing the stall. Defaults to `true`.
2626

2727
The previous environment variables `IO_EVENT_SELECTOR_STALL_LOG_THRESHOLD` and `IO_EVENT_SELECTOR_STALL_LOG` no longer have any effect.
2828

0 commit comments

Comments
 (0)
Please sign in to comment.