File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -629,6 +629,22 @@ s! {
629
629
pub struct thread_throughput_qos_policy {
630
630
pub thread_throughput_qos_tier: thread_throughput_qos_t,
631
631
}
632
+
633
+ // malloc/malloc.h
634
+ pub struct malloc_statistics_t {
635
+ pub blocks_in_use: :: c_uint,
636
+ pub size_in_use: :: size_t,
637
+ pub max_size_in_use: :: size_t,
638
+ pub size_allocated: :: size_t,
639
+ }
640
+
641
+ pub struct mstats {
642
+ pub bytes_total: :: size_t,
643
+ pub chunks_used: :: size_t,
644
+ pub bytes_used: :: size_t,
645
+ pub chunks_free: :: size_t,
646
+ pub bytes_free: :: size_t,
647
+ }
632
648
}
633
649
634
650
s_no_extra_traits ! {
@@ -4055,6 +4071,8 @@ extern "C" {
4055
4071
pub fn memset_pattern8 ( b : * mut :: c_void , pattern8 : * const :: c_void , len : :: size_t ) ;
4056
4072
pub fn memset_pattern16 ( b : * mut :: c_void , pattern16 : * const :: c_void , len : :: size_t ) ;
4057
4073
4074
+ pub fn mstats ( ) -> mstats ;
4075
+
4058
4076
pub fn proc_listpids (
4059
4077
t : u32 ,
4060
4078
typeinfo : u32 ,
You can’t perform that action at this time.
0 commit comments