public override void AllocationSummaryEnd(uint collection, ulong endCounter, DateTime endTime) { if ((currentAllocationSummary != null) && (currentAllocationSummary.Collection == collection)) { currentAllocationSummary.EndCounter = endCounter; currentAllocationSummary.EndTime = endTime; allocationSummaries.Add(currentAllocationSummary); currentAllocationSummary = null; } }
public ProfilerEventHandler() : base(new LoadedElementHandler <LoadedClass, LoadedMethod, UnmanagedFunctionFromRegion, UnmanagedFunctionFromID, ExecutableMemoryRegion, HeapObject, HeapSnapshot> (new LoadedElementFactory())) { perThreadStacks = new Dictionary <ulong, CallStack> (); stack = null; stackTraceFactory = new StackTrace.Factory(); unknownStatisticalHitsCollector = new UnknownStatisticalHitsCollector(); gcStatistics = new List <GcStatistics> (); pendingGcStatistics = new List <GcStatistics> (); currentGcStatistics = null; allocationSummaries = new List <AllocationSummary> (); currentAllocationSummary = null; globalMonitorStatistics = new GlobalMonitorStatistics(); }
public override void AllocationSummaryStart(uint collection, ulong startCounter, DateTime startTime) { currentAllocationSummary = new AllocationSummary(collection, startCounter, startTime); }