mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
tty: Add Tracy span to another long call
This commit is contained in:
+4
-1
@@ -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) = {
|
||||
|
||||
Reference in New Issue
Block a user