Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How can get occupied by CPU and Memory usage by my application?

How can get occupied by CPU and Memory usage by my application?

Scheduled Pinned Locked Moved C / C++ / MFC
questionperformancehelp
5 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Le rner
    wrote on last edited by
    #1

    Hi all, please tell me how can i get details of CPU and Memory usage that is used by my application. please help me for ths. thanks in advance.

    To accomplish great things, we must not only act, but also dream; not only plan, but also believe.

    R 1 Reply Last reply
    0
    • L Le rner

      Hi all, please tell me how can i get details of CPU and Memory usage that is used by my application. please help me for ths. thanks in advance.

      To accomplish great things, we must not only act, but also dream; not only plan, but also believe.

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      "_$h@nky_" wrote:

      how can i get details of CPU and Memory usage that is used by my application.

      See GetProcessTimes()[^] What memory usage? The working set? If yes, then see GetProcessWorkingSetSize()[^].

      It is a crappy thing, but it's life -^ Carlo Pallini

      L 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        "_$h@nky_" wrote:

        how can i get details of CPU and Memory usage that is used by my application.

        See GetProcessTimes()[^] What memory usage? The working set? If yes, then see GetProcessWorkingSetSize()[^].

        It is a crappy thing, but it's life -^ Carlo Pallini

        L Offline
        L Offline
        Le rner
        wrote on last edited by
        #3

        I have a SDI type application in MFC. I want to get information same like Window Task Manager display.

        like My exe name is Test.exe

        so in Processes Tab of Window Task Manager display the information like this.

        Image Name="Test.exe"
        User Name="";
        CPU="07";
        Memory="4,564K";
        Description="Test";

        Please help me for this. thanks in advance.

        To accomplish great things, we must not only act, but also dream; not only plan, but also believe.

        R 1 Reply Last reply
        0
        • L Le rner

          I have a SDI type application in MFC. I want to get information same like Window Task Manager display.

          like My exe name is Test.exe

          so in Processes Tab of Window Task Manager display the information like this.

          Image Name="Test.exe"
          User Name="";
          CPU="07";
          Memory="4,564K";
          Description="Test";

          Please help me for this. thanks in advance.

          To accomplish great things, we must not only act, but also dream; not only plan, but also believe.

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          "_$h@nky_" wrote:

          Image Name="Test.exe"

          See GetProcessName()[^]

          "_$h@nky_" wrote:

          User Name="";

          See GetUserName()[^]

          "_$h@nky_" wrote:

          CPU="07"; Memory="4,564K"; Description="Test";

          See Getting hardware information[^]

          It is a crappy thing, but it's life -^ Carlo Pallini

          L 1 Reply Last reply
          0
          • R Rajesh R Subramanian

            "_$h@nky_" wrote:

            Image Name="Test.exe"

            See GetProcessName()[^]

            "_$h@nky_" wrote:

            User Name="";

            See GetUserName()[^]

            "_$h@nky_" wrote:

            CPU="07"; Memory="4,564K"; Description="Test";

            See Getting hardware information[^]

            It is a crappy thing, but it's life -^ Carlo Pallini

            L Offline
            L Offline
            Le rner
            wrote on last edited by
            #5

            Rajesh R Subramanian wrote:

            "_$h@nky_" wrote: CPU="07"; Memory="4,564K"; Description="Test"; See Getting hardware information[^]

            I m using this but i dont have information like i mention above. please help me for this. thanks in advance.

            To accomplish great things, we must not only act, but also dream; not only plan, but also believe.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups