Coders Packet

memory usage of the program in C++

By Ageer HariKrishna

The project is about finding the memory usage of the program. It's similar to the task manager.

The packet is about finding the memory usage of the program. It's similar to the task manager. In the windows task manager, the user can know how much memory is allocated for a particular program. resource.h library plays a major part, it helps in finding the memory usage.
the malloc allocates a block of uninitialized memory in the memory block
getrusage measures of the resources used by the current process or its terminated and waited-for child processes. usleep is used to suspend the execution of a program for a specified period of time.usleep(10) passed 10 milliseconds as a parameter.
The following libraries must be included:-

sys/resource.h
sys/resource.h
stdio.h
stdlib.h
windows.h
errno.h
unistd.h
iostream

Download project

Reviews Report

Submitted by Ageer HariKrishna (AgeerHK)

Download packets of source code on Coders Packet