|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Apr 2009
Città: Aci Catena (CT)
Messaggi: 1021
|
[VbScript] Catturare valore del Hard Faults (Page Fault)
Ciao tutti,
dovrei monitorare il valore Page Faults di un processo. Manualmente lo faccio tramite il Task Manager >Performance > Resource monitor > Memory > Hard Faults/sec Tramite codice: Codice:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("SELECT * FROM Win32_Process WHERE Name = 'notepad.exe'")
colProcessList.ItemIndex(0).Properties_.Item("PageFaults").Value
Tramite codice il valore restituito e' 2525 Come mai? Sto sbagliando a pescare il valore interessato oppure e' espresso in un'unita' differente? Grazie |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 18:55.



















