From 07316b22314839d559c5ed667ced7399bab09cab Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Tue, 24 Sep 2024 16:54:30 +0530 Subject: [PATCH] feat: Added more trace events --- mnn-sync/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mnn-sync/src/lib.rs b/mnn-sync/src/lib.rs index 6ea8747..c9690ef 100644 --- a/mnn-sync/src/lib.rs +++ b/mnn-sync/src/lib.rs @@ -77,12 +77,18 @@ impl SessionHandle { let (tx, rx) = flume::unbounded(); let handle = builder .spawn(move || -> Result<()> { + #[cfg(feature = "tracing")] + tracing::info!("Starting mnn session thread"); let mut session = interpreter.create_session(config)?; + #[cfg(feature = "tracing")] + tracing::info!("Updating mnn cache file"); interpreter.update_cache_file(&mut session); let mut session_runner = SessionRunner { interpreter, session, }; + #[cfg(feature = "tracing")] + tracing::info!("Starting mnn session loop"); loop { let f = receiver .recv()