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; }
// Profiling methods. internal virtual void SetProfiler(GCProfiler profiler) { }
public RootVisitor(GCProfiler profiler) { this.profiler = profiler; }
public ObjectVisitor(GCProfiler profiler) { this.profiler = profiler; oneObjectVisitor = new OneObjectVisitor(profiler); }
public OneObjectVisitor(GCProfiler profiler) { this.profiler = profiler; }