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
  1. Home
  2. The Lounge
  3. CPU % by process

CPU % by process

Scheduled Pinned Locked Moved The Lounge
tutorialquestion
7 Posts 4 Posters 0 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.
  • D Offline
    D Offline
    Darren Schroeder
    wrote on last edited by
    #1

    Does anybody know how to get the cpu used percentage by process and/or thread like NT4/2K taskmanager or win9x wintop?

    M N A 4 Replies Last reply
    0
    • D Darren Schroeder

      Does anybody know how to get the cpu used percentage by process and/or thread like NT4/2K taskmanager or win9x wintop?

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Look up the Pdh* functions in MSDN: \Platform SDK\Base Services\Performance Monitoring\Performance Monitoring --Mike-- http://home.inreach.com/mdunn/ The preferred snack of 4 out of 5 Lounge readers.

      1 Reply Last reply
      0
      • D Darren Schroeder

        Does anybody know how to get the cpu used percentage by process and/or thread like NT4/2K taskmanager or win9x wintop?

        N Offline
        N Offline
        NormDroid
        wrote on last edited by
        #3

        Darren I posted ProcessStudio, which does just that. I'll separate the class which enumerates the Processes/Threads using the Performance Counters, I'll post the code as a class to codeproject, including an example on sorting the by CPU usage. I'll do this in the next 2/3 days, as I have a busy schedule on at the minute. Regards Norm

        1 Reply Last reply
        0
        • D Darren Schroeder

          Does anybody know how to get the cpu used percentage by process and/or thread like NT4/2K taskmanager or win9x wintop?

          N Offline
          N Offline
          NormDroid
          wrote on last edited by
          #4

          Darren I posted ProcessStudio, which does just that. I'll separate the class which enumerates the Processes/Threads using the Performance Counters, I'll post the code as a class to codeproject, including an example on sorting the by CPU usage. I'll do this in the next 2/3 days, as I have a busy schedule on at the minute. Ah, one caveat, this only works on NT platforms and above. Regards Norm

          1 Reply Last reply
          0
          • D Darren Schroeder

            Does anybody know how to get the cpu used percentage by process and/or thread like NT4/2K taskmanager or win9x wintop?

            A Offline
            A Offline
            AlexMarbus
            wrote on last edited by
            #5

            Talking about this subject, I think it's missed chance you can't see a graph per process/thread in the taskmanager, only total CPU- and memory-usage. In that case, Norm Almond did a great job :rose: with ProcessStudio (Although the application may run slow, at least the version I saw on my computer but a lot of external factors may have played a role in that) -- Alex Marbus www.marbus.net

            N 1 Reply Last reply
            0
            • A AlexMarbus

              Talking about this subject, I think it's missed chance you can't see a graph per process/thread in the taskmanager, only total CPU- and memory-usage. In that case, Norm Almond did a great job :rose: with ProcessStudio (Although the application may run slow, at least the version I saw on my computer but a lot of external factors may have played a role in that) -- Alex Marbus www.marbus.net

              N Offline
              N Offline
              NormDroid
              wrote on last edited by
              #6

              Alex Try the latest version, if its still slow I devote some time in sorting it out. Regards Norm

              A 1 Reply Last reply
              0
              • N NormDroid

                Alex Try the latest version, if its still slow I devote some time in sorting it out. Regards Norm

                A Offline
                A Offline
                AlexMarbus
                wrote on last edited by
                #7

                Tnx Norm, I'll download and install it at my work tomorrow (since I run WinME @ home). -- Alex Marbus www.marbus.net But then again, I could be wrong.

                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