使用对象流图(它是捕获事件和状态转换的基础模型)虚拟化实体生命周期是这个模型的关键。
Virtualization of the entity lifecycle through Object Flow Diagrams, a basic model that captures both events and state transitions, is critical in this model.
要提供此信息,需要为每个对象分配捕获分配堆栈跟踪,此开销很大,并且在许多格式的内存转储中不可用。
To provide that information, it is necessary to capture allocation stack traces for every object allocation, which is very expensive and is also not available in most formats of memory dumps.
匿名类允许创建这样的对象,该对象能够捕获定义它们的一部分环境,但是对象和代码块不一样。
Anonymous classes let you create objects that capture part of the environment in which they were defined, but objects and blocks of code are not the same thing.
应用推荐