Unix and Linux Discussions Tagged with information |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
8,897 |
What is on Your Mind? |
|
|
|
1 |
11,479 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
12,373 |
Shell Programming and Scripting |
|
|
|
3 |
3,486 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
9,661 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
3,250 |
Shell Programming and Scripting |
|
|
|
8 |
2,068 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,374 |
What is on Your Mind? |
|
|
|
6 |
3,441 |
What is on Your Mind? |
|
|
|
0 |
1,601 |
UNIX and Linux RSS News |
|
|
|
0 |
1,312 |
UNIX and Linux RSS News |
|
|
|
0 |
1,568 |
Complex Event Processing RSS News |
|
|
|
1 |
3,324 |
UNIX Desktop Questions & Answers |
|
|
|
2 |
2,276 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
18,323 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,690 |
Shell Programming and Scripting |
|
|
|
0 |
1,287 |
UNIX and Linux RSS News |
|
|
|
0 |
1,293 |
UNIX and Linux RSS News |
|
|
|
0 |
1,279 |
Software Releases - RSS News |
|
|
|
0 |
1,553 |
UNIX and Linux RSS News |
|
|
|
4 |
9,336 |
Programming |
|
|
|
1 |
3,563 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
11,103 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,339 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,938 |
Shell Programming and Scripting |
|
|
|
4 |
7,580 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,601 |
UNIX Desktop Questions & Answers |
|
|
|
6 |
3,200 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,909 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
3,516 |
Programming |
|
|
|
6 |
4,996 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,427 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
4,319 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,624 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,785 |
Programming |
|
|
|
4 |
3,415 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
21,784 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,218 |
Shell Programming and Scripting |
|
|
|
1 |
27,507 |
HP-UX |
|
|
|
3 |
9,644 |
UNIX for Dummies Questions & Answers |
getrusage(2) System Calls Manual getrusage(2)
NAME
getrusage - get information about resource utilization
SYNOPSIS
DESCRIPTION
The function provides measures of the resources used by the current process or its terminated and waited-for child processes. If the
value of the who argument is information is returned about resources used by the current process. If the value of the who argument is
information is returned about resources used by the terminated and waited-for children of the current process. If the child is never waited
for (for instance, if the parent has set or sets to the resource information for the child process is discarded and not included in the
resource information provided by The r_usage argument is a pointer to an object of type in which the returned information is stored.
If the current process is multi-threaded, returns the information about the resources used by all the active and the reaped threads/light-
weight processes in the current process if the value of the who argument is If the value of the who argument is in a multi-threaded
process, information returned is the same as it would be for a single-threaded process.
RETURN VALUE
Upon successful completion, returns Otherwise, is returned, and is set to indicate the error.
ERRORS
The function will fail if:
[EINVAL] The value of the who argument is not valid.
SEE ALSO
exit(2), sigaction(2), time(1), times(2), wait(1), <sys/resource.h>.
getrusage(2)