Next Topic

Previous Topic

Book Contents

Sample Script: TLuaWinperf

--Prints the number of private bytes the notepad.exe application have
allocated
Perf = TLuaWinperf()
if Perf:Query("Process","Private Bytes","notepad") then
	Value = Perf:GetResult();
	print(Value);
else
	print(Perf:GetErrorDescription())
end