Process accounting enables you to keep track of the following data about each process run on your system:
User and group IDs of those using the process
Beginning and elapsed times of the process
CPU time for the process (user time and system time)
Amount of memory used
Commands run
The tty controlling the process
Every time a process dies, the exit program collects this data and writes it to the /var/adm/pacct file.