Пример #1
0
        public override void Init()
        {
            ThreadPoolInformation = new ThreadPoolInformation(ClrDump, ClrDump.ThreadPool);
            NativeWorkItems       = ClrDump.ThreadPool.EnumerateNativeWorkItems().Select(workItem => new NativeWorkItemInformation(workItem)).ToList();

            try
            {
                ManagedWorkItems = ClrDump.ThreadPool.EnumerateManagedWorkItems().Select(workItem => new ManagedWorkItemInformation(workItem)).ToList();
            }
            catch (Exception)
            {
                // ClrMd does not yet support EnumerateManagedWorkItems with .net core dumps
                // see: https://github.com/Microsoft/clrmd/issues/131
                ManagedWorkItems = null;
            }
        }
 public override void Init()
 {
     ThreadPoolInformation = new ThreadPoolInformation(ClrDump, ClrDump.ThreadPool);
     NativeWorkItems       = ClrDump.ThreadPool.EnumerateNativeWorkItems().Select(workItem => new NativeWorkItemInformation(workItem)).ToList();
     ManagedWorkItems      = ClrDump.ThreadPool.EnumerateManagedWorkItems().Select(workItem => new ManagedWorkItemInformation(workItem)).ToList();
 }
Пример #3
0
 public override void Init()
 {
     ThreadPoolInformation = new ThreadPoolInformation(ClrDump, ClrDump.ThreadPool);
     NativeWorkItems = ClrDump.ThreadPool.EnumerateNativeWorkItems().Select(workItem => new NativeWorkItemInformation(workItem)).ToList();
     ManagedWorkItems = ClrDump.ThreadPool.EnumerateManagedWorkItems().Select(workItem => new ManagedWorkItemInformation(workItem)).ToList();
 }