コード例 #1
0
 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;
     }
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 public override void AllocationSummaryStart(uint collection, ulong startCounter, DateTime startTime)
 {
     currentAllocationSummary = new AllocationSummary(collection, startCounter, startTime);
 }