pub fn dump_all_metrics_to_file_periodically<P: AsRef<Path>>( dir_path: &P, file_name: &str, interval: u64 )