We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ef3ebd commit f4d41bcCopy full SHA for f4d41bc
1 file changed
crates/recording/src/memory_profiling.rs
@@ -58,15 +58,15 @@ impl MemoryProfiler {
58
#[cfg(feature = "memory-profiling")]
59
{
60
let stats = dhat::HeapStats::get();
61
- return LeakCheckResult {
+ LeakCheckResult {
62
growth_rate_mb_per_sec: growth.rate_mb_per_sec,
63
total_growth_mb: growth.total_mb,
64
peak_mb: growth.peak_mb,
65
dhat_current_blocks: Some(stats.curr_blocks as u64),
66
dhat_current_bytes: Some(stats.curr_bytes as u64),
67
dhat_peak_bytes: Some(stats.max_bytes as u64),
68
verdict: classify_leak(growth.rate_mb_per_sec),
69
- };
+ }
70
}
71
72
#[cfg(not(feature = "memory-profiling"))]
0 commit comments