malloc_stats(3) - wariua/manpages-ko GitHub Wiki
malloc_stats - λ©λͺ¨λ¦¬ ν λΉ ν΅κ³ μ°κΈ°
#include <malloc.h>
void malloc_stats(void);
malloc_stats()
ν¨μλ malloc(3) λ° κ΄λ ¨ ν¨μλ€μ΄ ν λΉν λ©λͺ¨λ¦¬μ λν ν΅κ³λ₯Ό (νμ€ μ€λ₯λ‘) μ°λλ€. κ° μλ λ(ν λΉ μμ)λ³λ‘ ν λΉν λ©λͺ¨λ¦¬ μ΄λκ³Ό μ¬μ© μ€μΈ ν λΉλ€μ΄ μλͺ¨νλ λ°μ΄νΈ μ΄μλ₯Ό μ°λλ€. (μ΄ λ κ°μ mallinfo(3)λ‘ μ»λ arena
λ° uordblks
νλμ λμνλ€.) μΆκ°λ‘ λͺ¨λ μλ λλ€μ λν λ ν΅κ³μΉμ ν©μ μ°κ³ , mmap(2)μΌλ‘ λμμ μ΅λλ‘ ν λΉνλ λΈλ‘ λ° λ°μ΄νΈ μλ₯Ό μ°λλ€.
μ΄ μ μμ μ¬μ©νλ μ©μ΄λ€μ λν μ€λͺ μ attributes(7)λ₯Ό 보λΌ.
μΈν°νμ΄μ€ | μμ± | κ° |
---|---|---|
malloc_stats() |
μ€λ λ μμ μ± | MT-Safe |
μ΄ ν¨μλ GNU νμ₯μ΄λ€.
mallinfo(3)λ₯Ό μ΄μ©νλ©΄ λ©μΈ μλ λμμμ λ©λͺ¨λ¦¬ ν λΉμ λν λ μμΈν μ 보λ₯Ό μ»μ μ μλ€.
mmap(2), mallinfo(3), malloc(3), malloc_info(3), mallopt(3)
2017-09-15