Returns the pretty printed output of the collected profiling data as a `String`
()
| 294 | |
| 295 | /// Returns the pretty printed output of the collected profiling data as a `String` |
| 296 | pub fn write_to_string() -> Result<String, Box<dyn Error>> { |
| 297 | let mut buffer = Vec::new(); |
| 298 | write(&mut buffer)?; |
| 299 | Ok(String::from_utf8(buffer)?) |
| 300 | } |
| 301 | |
| 302 | /// Resets the profiling data of all thread local [`Profiler`]s |
| 303 | /// |
no test coverage detected