lstat("/xxxxxx/live/b6c3506377254e9b879268aecbe77036/1338868/1338868515.block", {st_mode=S_IFREG|0644, st_size=261182, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
strace -p 21741 -c
Process 21741 attached - interrupt to quit
Process 21741 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
95.65 0.040955 87 469 getdents
4.22 0.001807 0 426525 rt_sigprocmask
0.07 0.000030 0 235 lstat
0.06 0.000026 0 235 close
0.00 0.000000 0 235 open
lstat和getdents函数都是用来查看文件属性信息的。
转载于:https://blog.51cto.com/caiguangguang/1355020