mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-09-18 04:46:43 +02:00
disable tracing
This commit is contained in:
parent
30b3802b56
commit
e29f8de174
1 changed files with 9 additions and 9 deletions
18
src/tek.rs
18
src/tek.rs
|
|
@ -16,15 +16,15 @@ pub fn show_version () {
|
|||
#[allow(unused)]
|
||||
#[hotpath::main]
|
||||
fn main () -> Usually<()> {
|
||||
#[cfg(feature = "prof")] let _flame_guard = {
|
||||
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
||||
//let tracy = tracing_tracy::TracyLayer::default();
|
||||
let (flame, _guard) = tracing_flame::FlameLayer::with_file("./tracing.folded").unwrap();
|
||||
//let registry = tracing_subscriber::registry().with(flame).init();
|
||||
//tracing::subscriber::set_global_default(registry)?;
|
||||
tracing::subscriber::set_global_default(tracing_subscriber::registry().with(flame))?;
|
||||
_guard
|
||||
};
|
||||
//#[cfg(feature = "prof")] let _flame_guard = {
|
||||
//use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
||||
////let tracy = tracing_tracy::TracyLayer::default();
|
||||
//let (flame, _guard) = tracing_flame::FlameLayer::with_file("./tracing.folded").unwrap();
|
||||
////let registry = tracing_subscriber::registry().with(flame).init();
|
||||
////tracing::subscriber::set_global_default(registry)?;
|
||||
//tracing::subscriber::set_global_default(tracing_subscriber::registry().with(flame))?;
|
||||
//_guard
|
||||
//};
|
||||
tengri::Tui::setup_panic();
|
||||
#[cfg(feature = "cli")] let outcome = Config::watched(crate::cli::run_with_config);
|
||||
#[cfg(not(feature = "cli"))] let outcome = Config::watched(run_new_plain);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue