コード例 #1
0
ファイル: GCProfiler.cs プロジェクト: Paul1nh0/Singularity
 internal void NotifyPostGC(ProfileRootsDelegate profileRoots,
                            ProfileObjectsDelegate profileObjects)
 {
     this.profileRoots   = profileRoots;
     this.profileObjects = profileObjects;
     PostGC();
 }
コード例 #2
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;
        }