Skip to content

Commit

Permalink
feat: Added more trace events
Browse files Browse the repository at this point in the history
  • Loading branch information
uttarayan21 committed Sep 24, 2024
1 parent ae042ac commit 07316b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mnn-sync/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 07316b2

Please sign in to comment.