Escolar Documentos
Profissional Documentos
Cultura Documentos
Biblioteca memlog
Aplicativo analisamem
#define LEMEMLOG(pos,tam,id) \
((void)((ml.ativo==MLATIVO)?leMemLog(pos,tam,id):0))
#define ESCREVEMEMLOG(pos,tam,id) \
((void) ((ml.ativo==MLATIVO)?escreveMemLog(pos,tam,id):0))
………
return finalizaMemLog();
Linha de comando:
bin/matop -m -p /tmp/multlog.out -l -x 5 -y 5
top - 18:15:56 up 7 days, 2:15, 1 user, load average: 1,48, 1,59, 1,81
Tasks: 295 total, 1 running, 294 sleeping, 0 stopped, 0 zombie
%Cpu(s): 6,0 us, 3,1 sy, 0,0 ni, 90,6 id, 0,3 wa, 0,0 hi, 0,0 si, 0,0
st
MiB Mem : 15738,0 total, 917,8 free, 12785,4 used, 2034,8 buff/cache
MiB Swap: 2048,0 total, 0,0 free, 2048,0 used. 1168,4 avail Mem
Biblioteca memlog
Aplicativo analisamem