mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Add profiling info and optional profiling with Tracy
This commit is contained in:
parent
79b57b3359
commit
7aa7a35aa5
7 changed files with 163 additions and 0 deletions
|
|
@ -6,6 +6,9 @@ use clap::Parser;
|
|||
use librojo::cli::Options;
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "profile-with-tracy")]
|
||||
tracy_client::Client::start();
|
||||
|
||||
panic::set_hook(Box::new(|panic_info| {
|
||||
// PanicInfo's payload is usually a &'static str or String.
|
||||
// See: https://doc.rust-lang.org/beta/std/panic/struct.PanicInfo.html#method.payload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue