localpdh=require"pdh"assert(notpdh.disabled())
localquery=pdh.query()
localpath=pdh.translate_path([[\Processor(_Total)\% Processor Time]])
localcounter=query:add_counter(path)
query:collect()
pdh.sleep(1)
whiletruedoquery:collect()
print(path, " => ", math.floor(counter:as_double()))
pdh.sleep(1000)
endLatest commit
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
