HolyLib Wiki

VProfCounter

VProfCounter

This class represents the engine VProfCounter class

Metatable function Description
__tostring Returns a formated string of the VProfCounter -> VProfCounter [name][value]

Currently a VProfCounter NEVER becomes NULL meaning in cases like vprof.Term it will become unsafe to use a VProfCounter.

Methods

VProfCounter:Decrement()
Decrements the counter by one.
number VProfCounter:Get( )
Returns the current value of the counter.
string VProfCounter:GetName( )
Returns the name of the counter.
VProfCounter:Increment()
Increments the counter by one.
VProfCounter:Set( number value )
Sets the counter to the given value.