# Performance

Start from base library version 2.11.0. Please remaining backward compatible.

Performance Object for getting performance data and creating performance listeners

# method

# Array Performance.getEntries()

This method returns all the performance data in the current buffer

# Array Performance.getEntriesByType(string entryType)

Gets all of the types in the current buffer [entryType] Performance data

# Array Performance.getEntriesByName(string name, string entryType)

Gets all names in the current buffer as [name] And the type is [entryType] Performance data

# PerformanceObserver Performance.createObserver(function callback)

Create a global performance event listener

# Performance.setBufferSize(number size)

Set the buffer size, Default buffer 30 Bar Performance Data