Skip to content

Commit d5a30ff

Browse files
committed
Bump minor version.
1 parent a9ad00a commit d5a30ff

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

Diff for: 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.7.5"
10+
VERSION = "1.8.0"
1111
end
1212
end

Diff for: 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.8.0
22+
23+
- [Detecing fibers that are stalling the event loop.](https://socketry.github.io/io-event/releases/index#detecing-fibers-that-are-stalling-the-event-loop.)
24+
2125
### v1.7.5
2226

2327
- Fix `process_wait` race condition on EPoll that could cause a hang.

Diff for: releases.md

+16-18
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
# Releases
22

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

55
### Detecing fibers that are stalling the event loop.
66

77
A new (experimental) feature for detecting fiber stalls has been added. This feature is disabled by default and can be enabled by setting the `IO_EVENT_SELECTOR_STALL_LOG_THRESHOLD` to `true` or a floating point number representing the threshold in seconds.
88

99
When enabled, the event loop will measure and profile user code when resuming a fiber. If the fiber takes too long to return back to the event loop, the event loop will log a warning message with a profile of the fiber's execution.
1010

11-
```
12-
> cat test.rb
13-
#!/usr/bin/env ruby
14-
15-
require_relative "lib/async"
16-
17-
Async do
18-
Fiber.blocking do
19-
sleep 1
20-
end
21-
end
22-
23-
> IO_EVENT_SELECTOR_STALL_LOG_THRESHOLD=true bundle exec ./test.rb
24-
Fiber stalled for 1.003 seconds
25-
/home/samuel/Developer/socketry/async/test.rb:6 in '#<Class:Fiber>#blocking' (1s)
26-
/home/samuel/Developer/socketry/async/test.rb:7 in 'Kernel#sleep' (1s)
27-
```
11+
> cat test.rb
12+
#!/usr/bin/env ruby
13+
14+
require_relative "lib/async"
15+
16+
Async do
17+
Fiber.blocking do
18+
sleep 1
19+
end
20+
end
21+
22+
> IO_EVENT_SELECTOR_STALL_LOG_THRESHOLD=true bundle exec ./test.rb
23+
Fiber stalled for 1.003 seconds
24+
/home/samuel/Developer/socketry/async/test.rb:6 in '#<Class:Fiber>#blocking' (1s)
25+
/home/samuel/Developer/socketry/async/test.rb:7 in 'Kernel#sleep' (1s)
2826

2927
There is a performance overhead to this feature, so it is recommended to only enable it when debugging performance issues.
3028

0 commit comments

Comments
 (0)