Esempio n. 1
0
        public DesktopStackFrame(DesktopRuntimeBase runtime, ulong sp, ulong md)
        {
            _runtime   = runtime;
            _sp        = sp;
            _frameName = _runtime.GetNameForMD(md) ?? "Unknown";
            _type      = ClrStackFrameType.Runtime;

            InitMethod(md);
        }
Esempio n. 2
0
        public DesktopStackFrame(DesktopRuntimeBase runtime, DesktopThread thread, ulong ip, ulong sp, ulong md)
        {
            _runtime   = runtime;
            _thread    = thread;
            _ip        = ip;
            _sp        = sp;
            _frameName = _runtime.GetNameForMD(md) ?? "Unknown";
            _type      = ClrStackFrameType.ManagedMethod;

            InitMethod(md);
        }
Esempio n. 3
0
        public DesktopStackFrame(DesktopRuntimeBase runtime, DesktopThread thread, byte[] context, ulong sp, ulong md)
        {
            _runtime     = runtime;
            _thread      = thread;
            _context     = context;
            StackPointer = sp;
            _frameName   = _runtime.GetNameForMD(md) ?? "Unknown";
            _type        = ClrStackFrameType.Runtime;

            InitMethod(md);
        }
Esempio n. 4
0
 public DesktopMethod(DesktopRuntimeBase runtime, ulong md, IMethodDescData mdData, MethodAttributes attrs)
 {
     m_runtime = runtime;
     m_sig = runtime.GetNameForMD(md);
     m_ip = mdData.NativeCodeAddr;
     m_jit = mdData.JITType;
     m_attrs = attrs;
     m_token = mdData.MDToken;
     var heap = (DesktopGCHeap)runtime.GetHeap();
     m_type = heap.GetGCHeapType(mdData.MethodTable, 0);
 }
Esempio n. 5
0
 public DesktopMethod(DesktopRuntimeBase runtime, ulong md, IMethodDescData mdData, MethodAttributes attrs)
 {
     _runtime = runtime;
     _sig = runtime.GetNameForMD(md);
     _ip = mdData.NativeCodeAddr;
     _jit = mdData.JITType;
     _attrs = attrs;
     _token = mdData.MDToken;
     var heap = runtime.GetHeap();
     _type = (DesktopHeapType)heap.GetTypeByMethodTable(mdData.MethodTable, 0);
 }
Esempio n. 6
0
        public DesktopMethod(DesktopRuntimeBase runtime, ulong md, IMethodDescData mdData, MethodAttributes attrs)
        {
            m_runtime = runtime;
            m_sig     = runtime.GetNameForMD(md);
            m_ip      = mdData.NativeCodeAddr;
            m_jit     = mdData.JITType;
            m_attrs   = attrs;
            m_token   = mdData.MDToken;
            var heap = (DesktopGCHeap)runtime.GetHeap();

            m_type = heap.GetGCHeapType(mdData.MethodTable, 0);
        }
Esempio n. 7
0
        public DesktopMethod(DesktopRuntimeBase runtime, ulong md, IMethodDescData mdData, MethodAttributes attrs)
        {
            _runtime        = runtime;
            _sig            = runtime.GetNameForMD(md);
            _ip             = mdData.NativeCodeAddr;
            CompilationType = mdData.JITType;
            _attrs          = attrs;
            _token          = mdData.MDToken;
            GCInfo          = mdData.GCInfo;
            ClrHeap heap = runtime.Heap;

            _type       = (DesktopHeapType)heap.GetTypeByMethodTable(mdData.MethodTable, 0);
            HotColdInfo = new HotColdRegions {
                HotStart = _ip, HotSize = mdData.HotSize, ColdStart = mdData.ColdStart, ColdSize = mdData.ColdSize
            };
        }
Esempio n. 8
0
        public DesktopStackFrame(DesktopRuntimeBase runtime, ulong ip, ulong sp, ulong md)
        {
            _runtime = runtime;
            _ip = ip;
            _sp = sp;
            _frameName = _runtime.GetNameForMD(md) ?? "Unknown";
            _type = ClrStackFrameType.ManagedMethod;

            InitMethod(md);
        }
Esempio n. 9
0
        public DesktopStackFrame(DesktopRuntimeBase runtime, DesktopThread thread, ulong sp, ulong md)
        {
            _runtime = runtime;
            _thread = thread;
            _sp = sp;
            _frameName = _runtime.GetNameForMD(md) ?? "Unknown";
            _type = ClrStackFrameType.Runtime;

            InitMethod(md);
        }