How can I know the maximum amount of RAM used(application)?

I play a lot of games and games need a lot f memory to run at proper fps. I want to analyze what amount of RAM actually is used by a game? Is there a way to find out the amount of RAM used only by an application? Help to to find a software which will solve my problem.
