mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
remove duplicate tracing filter code, fix compiling voxygen with the
tracy feature
This commit is contained in:
parent
0683a40741
commit
7efbc74551
@ -8,6 +8,6 @@ generate = "run --package tools --"
|
||||
test-server = "-Zpackage-features run --bin veloren-server-cli --no-default-features"
|
||||
tracy-server = "-Zunstable-options -Zpackage-features run --bin veloren-server-cli --no-default-features --features tracy --profile no_overflow"
|
||||
test-voxygen = "-Zpackage-features run --bin veloren-voxygen --no-default-features --features gl"
|
||||
tracy-voxygen = "-Zunstable-options -Zpackage-features run --bin veloren-voxygen --no-default-features --features tracy gl --profile no_overflow"
|
||||
tracy-voxygen = "-Zunstable-options -Zpackage-features run --bin veloren-voxygen --no-default-features --features tracy,gl --profile no_overflow"
|
||||
server = "run --bin veloren-server-cli"
|
||||
|
||||
|
@ -31,7 +31,7 @@ macro_rules! span {
|
||||
let $guard_name = span.enter();
|
||||
// Directly use `tracy_client` to decrease overhead for better timing
|
||||
#[cfg(feature = "tracy")]
|
||||
let $guard_name = tracy_client::Span::new(
|
||||
let $guard_name = $crate::util::tracy_client::Span::new(
|
||||
$name,
|
||||
"",
|
||||
module_path!(),
|
||||
|
@ -63,11 +63,7 @@ pub fn init(settings: &Settings) -> Vec<impl Drop> {
|
||||
};
|
||||
|
||||
#[cfg(feature = "tracy")]
|
||||
let filter = EnvFilter::new("dot_vox::parser=warn")
|
||||
.add_directive("gfx_device_gl=warn".parse().unwrap())
|
||||
.add_directive("uvth=warn".parse().unwrap())
|
||||
.add_directive("tiny_http=warn".parse().unwrap())
|
||||
.add_directive(LevelFilter::TRACE.into());
|
||||
let filter = base_exceptions(EnvFilter::new("")).add_directive(LevelFilter::TRACE.into());
|
||||
|
||||
// Create the terminal writer layer.
|
||||
let (non_blocking, _stdio_guard) = tracing_appender::non_blocking(std::io::stdout());
|
||||
|
Loading…
Reference in New Issue
Block a user