Beispiel #1
0
        internal override void SetProfiler(GCProfiler profiler)
        {
            if (GcProfiler != null)
            {
                throw new InvalidOperationException("Only one GCProfiler can be active in a process");
            }
            ProfileRoots   = new ProfileRootsDelegate(ProfileScanRoots);
            ProfileObjects = new ProfileObjectsDelegate(ProfileScanObjects);

            GcProfiler = profiler;
        }
Beispiel #2
0
 // Profiling methods.
 internal virtual void SetProfiler(GCProfiler profiler)
 {
 }
Beispiel #3
0
 public RootVisitor(GCProfiler profiler)
 {
     this.profiler = profiler;
 }
Beispiel #4
0
 public ObjectVisitor(GCProfiler profiler)
 {
     this.profiler    = profiler;
     oneObjectVisitor = new OneObjectVisitor(profiler);
 }
Beispiel #5
0
 public OneObjectVisitor(GCProfiler profiler)
 {
     this.profiler = profiler;
 }