The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Performance counters
#1
Macro
Code:
Copy      Help
;Performance counter functions.
;Can be used, for example, to create performance triggers.
;The counters are the same as you can see in Performance Monitor (perfmon.exe).
;At first call Open. Then repeatedly call Query. The first Query does not get results.

;EXAMPLES
out
#compile CPerformanceCounter
CPerformanceCounter c
c.Open("\LogicalDisk(C:)\% Disk Time") ;;logical disk C:
;c.Open("\PhysicalDisk(_Total)\% Disk Time") ;;all physical disks (the same as GetDiskUsage)
;c.Open("\Memory\Available MBytes") ;;free physical memory
;c.Open("\Network Interface(*)\Bytes Received/sec") ;;bytes received/s by all network adapters.
c.Query
rep 3
,1
,out c.Query

2014-01-12. Supports Unicode.


Attached Files
.qml   CPerformanceCounter.qml (Size: 2.75 KB / Downloads: 708)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)