Miniprofiler (#42385)
Release Notes: - Added hang detection and a built in performance profiler
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user