#include <coherence/lang/ClassBasedHeapAnalyzer.hpp>
Inherits AbstractHeapAnalyzer.
The memory consumption of this heap analyzer is relative to the number of classes used within the process. The CPU consumption is also very low, each registration consists of roughly four compare-and-set operations. It is well suited for development as well as many production envrionments.
Public Types | ||||
| typedef spec::Handle | Handle | |||
| ClassBasedHeapAnalyzer Handle definition. | ||||
| typedef spec::View | View | |||
| ClassBasedHeapAnalyzer View definition. | ||||
| typedef spec::Holder | Holder | |||
| ClassBasedHeapAnalyzer Holder definition. | ||||
Public Member Functions | ||||
|
virtual HeapAnalyzer::Snapshot::View | capture () const | |||
| Capture a Snapshot of the current state of the heap.
| ||||
|
virtual HeapAnalyzer::Snapshot::View | delta (HeapAnalyzer::Snapshot::View vSnap) const | |||
| Compute the delta between the supplied Snapshot and the current heap state.
| ||||
| virtual int64_t | getObjectCount () const | |||
| Return the number of registered objects.
| ||||
Protected Member Functions | ||||
| ClassBasedHeapAnalyzer () | ||||
| Create a new ClassBasedHeapAnalyzer. | ||||
| virtual void | safeRegisterObject (const Object &o) | |||
| Registers an object with the heap analyzer.
| ||||
| virtual void | safeUnregisterObject (const Object &o) | |||
| Unregisters an object with the heap analyzer.
| ||||
| virtual void | registerObject (const Object &o) | |||
| Register a newly created Object with the system. This method is called automatically by coherence::lang::Object once the Object has finished construction.
If the calling thread is reentering this method return immediatley otherwise delegates to safeRegisterObject. | ||||
| virtual void | unregisterObject (const Object &o) | |||
| Unregister an Object with the system. This method is called automatically by coherence::lang::Object just prior to the deletion of the Object. No new handles or views may be created to the object.
If the calling thread is reentering this method return immediatley otherwise delegates to safeUnregisterObject. | ||||
Classes | ||||
| class | ClassStats | |||
| Statistics relating to a class. More... | ||||
| class | Snapshot | |||
| Snapshot containging the object count. More... | ||||