MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / write_to_string

Function write_to_string

splashsurf_lib/src/profiling.rs:296–300  ·  view source on GitHub ↗

Returns the pretty printed output of the collected profiling data as a `String`

()

Source from the content-addressed store, hash-verified

294
295/// Returns the pretty printed output of the collected profiling data as a `String`
296pub 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///

Callers 2

mainFunction · 0.85
run_splashsurf_implFunction · 0.85

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected