ctx.accessCount()
-
返回:<integer> 访问(读取或写入)该属性的次数。
¥Returns: <integer> The number of times that the property was accessed (read or written).
此函数返回访问该属性的次数。此函数比检查 ctx.accesses.length
更高效,因为 ctx.accesses
是一个创建内部访问跟踪数组副本的 getter。
¥This function returns the number of times that the property was accessed.
This function is more efficient than checking ctx.accesses.length
because
ctx.accesses
is a getter that creates a copy of the internal access tracking array.