Miniprofiler (#42385)

Release Notes:

- Added hang detection and a built in performance profiler
This commit is contained in:
localcc
2025-11-12 15:31:20 +01:00
committed by GitHub
parent 2119ac42d7
commit 49634f6041
28 changed files with 1283 additions and 103 deletions
+6
View File
@@ -155,6 +155,12 @@ pub fn temp_dir() -> &'static PathBuf {
})
}
/// Returns the path to the hang traces directory.
pub fn hang_traces_dir() -> &'static PathBuf {
static LOGS_DIR: OnceLock<PathBuf> = OnceLock::new();
LOGS_DIR.get_or_init(|| data_dir().join("hang_traces"))
}
/// Returns the path to the logs directory.
pub fn logs_dir() -> &'static PathBuf {
static LOGS_DIR: OnceLock<PathBuf> = OnceLock::new();