1.1 KiB
1.1 KiB
Container : VisualElement
Functions
| Method | Returns | Description |
|---|---|---|
| Container:benchmarkContainer | Container | Recursively enables benchmarking |
| Container:logContainerBenchmarks | Container | Recursively logs benchmark statistics |
| Container:stopContainerBenchmark | Container | Recursively stops benchmarking |
Container:benchmarkContainer(methodName)
Enables benchmarking for a container and all its children
Parameters
methodNamestringThe method to benchmark
Returns
ContainerselfThe container instance
Usage
container:benchmarkContainer("render")
Container:logContainerBenchmarks(methodName)
Logs benchmark statistics for a container and all its children
Parameters
methodNamestringThe method to log
Returns
ContainerselfThe container instance
Container:stopContainerBenchmark(methodName)
Stops benchmarking for a container and all its children
Parameters
methodNamestringThe method to stop benchmarking
Returns
ContainerselfThe container instance