/usr/bin/time -v
의 다양한 출력이 정확히 무엇인지에 대한 자세한 정보를 찾는 데 어려움을 겪고 있습니다. 즉, 파일 입력/출력의 의미에 대해 혼란스러워합니다./usr/bin/time 파일 입력/출력
누군가가 '/ usr/bin/time'에 약간의 경험이 있다면, 나를 바로 잡을 수 있다면 고맙겠습니다.
/usr/bin/time -v
의 다양한 출력이 정확히 무엇인지에 대한 자세한 정보를 찾는 데 어려움을 겪고 있습니다. 즉, 파일 입력/출력의 의미에 대해 혼란스러워합니다./usr/bin/time 파일 입력/출력
누군가가 '/ usr/bin/time'에 약간의 경험이 있다면, 나를 바로 잡을 수 있다면 고맙겠습니다.
당신의 OS는 무엇입니까? BSD의 리눅스입니까?
이 time
유틸리티 (섹션 1)의 맨 페이지에서 일부 필드 설명 리눅스에서, 예를 들면 : http://man7.org/linux/man-pages/man1/time.1.html
그러나 시간이 자체가 아마, 정보를 얻기 위해 커널 wait3
/wait4
http://man7.org/linux/man-pages/man2/wait3.2.html 일부 인터페이스를 사용 time -v
인쇄 데이터 getrusage(2)
설명서 페이지를 참조하십시오 struct rusage
에서이다 : 리눅스 http://man7.org/linux/man-pages/man2/getrusage.2.html
리눅스 만일 rusage의 많은 분야가 있지만, 모든 필드는 사용하지 :
,451,515,The resource usages are returned in the structure pointed to by
usage, which has the following form:
struct rusage {
struct timeval ru_utime; /* user CPU time used */
struct timeval ru_stime; /* system CPU time used */
long ru_maxrss; /* maximum resident set size */
long ru_ixrss; /* integral shared memory size */
long ru_idrss; /* integral unshared data size */
long ru_isrss; /* integral unshared stack size */
long ru_minflt; /* page reclaims (soft page faults) */
long ru_majflt; /* page faults (hard page faults) */
long ru_nswap; /* swaps */
long ru_inblock; /* block input operations */
long ru_oublock; /* block output operations */
long ru_msgsnd; /* IPC messages sent */
long ru_msgrcv; /* IPC messages received */
long ru_nsignals; /* signals received */
long ru_nvcsw; /* voluntary context switches */
long ru_nivcsw; /* involuntary context switches */
};
http://man7.org/linux/man-pages/man2/getrusage.2.html 또한 몇 가지 설명을 제공하고 표시 관리되지 않는 필드 :이 구현 고유의 http://pubs.opengroup.org/onlinepubs/009695399/functions/getrusage.html
헤더가 정의해야한다 그래서
ru_utime ru_stime ru_maxrss (since Linux 2.6.32) ru_ixrss (unmaintained) ru_idrss (unmaintained) ru_isrss (unmaintained) ru_minflt ru_majflt ru_nswap (unmaintained) ru_inblock (since Linux 2.6.22) The number of times the filesystem had to perform input. ru_oublock (since Linux 2.6.22) The number of times the filesystem had to perform output. ru_msgsnd (unmaintained) ru_msgrcv (unmaintained) ru_nsignals (unmaintained) ru_nvcsw (since Linux 2.6) ru_nivcsw (since Linux 2.6)
POSIX 2004, 구현하는 더 정확한 목록이 없습니다 적어도 다음과 같은 멤버를 포함하는 루시우스 구조 :
struct timeval ru_utime User time used. struct timeval ru_stime System time used.