Skip to content

Commit 8477b4c

Browse files
authored
Merge pull request #186 from jacob-hughes/bdwgc-stats
Add BDWGC collection stats to logged stats output
2 parents eb96b20 + 722013c commit 8477b4c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library/std/src/gc.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ pub fn init() {
211211
bdwgc::GC_set_finalize_on_demand(1);
212212
bdwgc::GC_set_finalizer_notifier(Some(notify_finalizer_thread));
213213
#[cfg(feature = "bdwgc-disable")]
214-
bdwgc::GC_disable()
214+
bdwgc::GC_disable();
215+
#[cfg(feature = "log-stats")]
216+
bdwgc::GC_enable_benchmark_stats();
215217
}
216218
}
217219

0 commit comments

Comments
 (0)