CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2010
    Posts
    54

    Get maximum memory usage of My App

    I use Visual C++ to write a native C++ application. How to know the maximum memory it will use during its execution?

    Thanks

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Get maximum memory usage of My App

    How about the Task Manager? Or Process Explorer?
    Victor Nijegorodov

  3. #3
    Join Date
    Nov 2010
    Posts
    54

    Re: Get maximum memory usage of My App

    Yes, task manager can show the memory used by the my application in real time. However, since my app will run for 24 hours, it is impossible for me to look at the memory usage for all the time. That is the reason I want to find a tool to monitor and record the memory usage history if possible.

    Does Process Explorer has such a feature? Is it a tool included in Visual Studio?

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Get maximum memory usage of My App

    Quote Originally Posted by AlanCCC View Post
    I want to find a tool to monitor and record the memory usage history if possible.

    Does Process Explorer has such a feature? Is it a tool included in Visual Studio?
    Well, I gave you a link to Process Explorer. Did you miss this link?

    And no, Process Explorer is NOT included in Visual Studio.
    Last edited by VictorN; April 23rd, 2013 at 02:59 AM.
    Victor Nijegorodov

  5. #5
    Join Date
    May 2007
    Posts
    811

    Re: Get maximum memory usage of My App

    Memory Management Functions on MSDN may be a good start.

  6. #6
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    2,042

    Re: Get maximum memory usage of My App

    Quote Originally Posted by AlanCCC View Post
    Yes, task manager can show the memory used by the my application in real time. However, since my app will run for 24 hours, it is impossible for me to look at the memory usage for all the time. That is the reason I want to find a tool to monitor and record the memory usage history if possible.
    Task manager can also show peak memory usage.
    Cheers, D Drmmr

    Please put [code][/code] tags around your code to preserve indentation and make it more readable.

    As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured