diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-11-19 08:53:33 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-11-19 08:53:35 +0300 |
| commit | c722634c269ae97a5ea185691bcd0b8c73a600e5 (patch) | |
| tree | 5fdf1e687238649e85463269643356546b7efc57 /src | |
| parent | 63f58086b9783fd80839ef35df82b05682c1c495 (diff) | |
| download | niri-c722634c269ae97a5ea185691bcd0b8c73a600e5.tar.gz niri-c722634c269ae97a5ea185691bcd0b8c73a600e5.tar.bz2 niri-c722634c269ae97a5ea185691bcd0b8c73a600e5.zip | |
tty: Add Tracy span to another long call
Diffstat (limited to 'src')
| -rw-r--r-- | src/backend/tty.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs index aae661e8..7f5d0a39 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -716,7 +716,10 @@ impl Tty { let _span = tracy_client::span!("Tty::device_added"); let open_flags = OFlags::RDWR | OFlags::CLOEXEC | OFlags::NOCTTY | OFlags::NONBLOCK; - let fd = self.session.open(path, open_flags)?; + let fd = { + let _span = tracy_client::span!("LibSeatSession::open"); + self.session.open(path, open_flags) + }?; let device_fd = DrmDeviceFd::new(DeviceFd::from(fd)); let (drm, drm_notifier) = { |
