Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
CodeDelphiTech Partner

Easily Monitor CPU Usage Effectively From Your Delphi Windows Apps With This Powerful Component Suite

cpuusagefimage

Monitoring CPU usage becomes an essential use case in some of the applications. Don’t know how to monitor the CPU usage in your Delphi Applications? Don’t worry. MiTec’s System Information Management Suite’s component helps monitor CPU usage easily, and we will learn how to use the thread TPerfMonThread in this post.

Platforms: Windows.

Installation Steps:  

You can easily install this Component Suite from GetIt Package Manager. The steps are as follows.

  1. Navigate In RAD Studio IDE->Tools->GetIt Package Manager->select Components in Categories->Components->Trail -MiTec system Information Component Suite 14.3 and click Install Button.
  2. Read the license and Click Agree All. An Information dialog saying ‘Requires a restart of RAD studio at the end of the process. Do you want to proceed? click yes and continue.
  3. It will download the plugin and installs it. Once installed Click Restart now.

How to run the Demo app: 

  • Navigate to the System Information Management Suite trails setup, Demos folder which is installed during Get It installation e.g) C:UsersDocumentsEmbarcaderoStudio21.0CatalogRepositoryMiTeC-14.3DemosDelphi21
  • Open the CPUUsage project in RAD studio 10.4.1 compile and Run the application.
  • This Demo App shows how to monitor the Performance of CPU in your machine and show the performance by progress bar.

Components used in MSIC CPUUsage Demo App:

  • TPerfMonThread: Monitors specified performance counters.
  • TGuage: To show the performance of the CPU
  • TLabel: To represent the CPU core names.

Implementation Details:

  • An instance FPM of TPerfMonThread is created. An efficient way to determine CPU usage is to use the ‘Processor:% Processor Time’ counter in System Monitor. This counter monitors the amount of time the CPU spends executing a thread that is not idle. Using the GetCounterInstances by providing counter path and string list.
  • For each cores created a label mentioning Core number and a TGauge to represent the performance.
  • On each interval, the progress of the Gauge is updated by ReadCounter property.
cpuusagedemo 8041510
<strong>MiTeC CPU Usage Demo<strong>

It’s that simple to monitor CPU usage in your machine and view the performance of the CPU cores. Use this MiTeC component suite and get the job done with less code.

Head over and check out the full MiTec System Information Management Suite for Access System Information for Windows in Delphi Applications

With Windows IDE, you can easily monitor CPU usage from your Delphi Windows apps with a component suite. Try your Free Trial here.

See What's New in 12.2 Athens See What's New in 12.2 Athens Dev Days of Summer 2-24

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

2 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES