From 8a7e4bc3cd56053546d330bbc5dc855824980a70 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 16 Jan 2024 12:53:01 +0400 Subject: Add Tracy span to Config::load and parse --- niri-config/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'niri-config/src') diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index 6cb0675b..b9742df8 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -480,6 +480,7 @@ impl Default for DebugConfig { impl Config { pub fn load(path: Option) -> miette::Result<(Self, PathBuf)> { + let _span = tracy_client::span!("Config::load"); Self::load_internal(path).context("error loading config") } @@ -505,6 +506,7 @@ impl Config { } pub fn parse(filename: &str, text: &str) -> Result { + let _span = tracy_client::span!("Config::parse"); knuffel::parse(filename, text) } } -- cgit