diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-16 12:53:01 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-16 12:53:40 +0400 |
| commit | 8a7e4bc3cd56053546d330bbc5dc855824980a70 (patch) | |
| tree | d76a5216b86d7539b27f4c2bc20ecf7bd484d845 /niri-config/src | |
| parent | 69907f123d2f17bc1f9a04c0bda7430f250404de (diff) | |
| download | niri-8a7e4bc3cd56053546d330bbc5dc855824980a70.tar.gz niri-8a7e4bc3cd56053546d330bbc5dc855824980a70.tar.bz2 niri-8a7e4bc3cd56053546d330bbc5dc855824980a70.zip | |
Add Tracy span to Config::load and parse
Diffstat (limited to 'niri-config/src')
| -rw-r--r-- | niri-config/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<PathBuf>) -> 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<Self, knuffel::Error> { + let _span = tracy_client::span!("Config::parse"); knuffel::parse(filename, text) } } |
