Skip to content

Commit d88ff08

Browse files
authored
Add warning about tracy being enabled (#22129)
# Objective - Fixes: #10831 ## Solution - Print a warning about tracy memory usage ## Testing Did this from my phone, so obviously untested, but its also very simple. Will test later if i don't forget.
1 parent c85849a commit d88ff08

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/bevy_log/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ impl Plugin for LogPlugin {
407407
let subscriber_already_set =
408408
tracing::subscriber::set_global_default(finished_subscriber).is_err();
409409

410+
#[cfg(feature = "tracing-tracy")]
411+
warn!("Tracing with Tracy is active, memory consumption will grow until a client is connected");
412+
410413
match (logger_already_set, subscriber_already_set) {
411414
(true, true) => error!(
412415
"Could not set global logger and tracing subscriber as they are already set. Consider disabling LogPlugin."

0 commit comments

Comments
 (0)