Resolve managed and native stack trace - which API to use?

前端 未结 3 1021
刺人心
刺人心 2020-12-19 17:34

This is continuation to my previous question - phase 2 so to say.

First question was here: Fast capture stack trace on windows / 64-bit / mixed mode

Now I ha

3条回答
  •  生来不讨喜
    2020-12-19 18:02

    Here is an answer from Jan Kotas on this:

    From: Jan Kotas 
    To: Tarmo Pikaro  
    Sent: Tuesday, January 12, 2016 5:09 AM
    Subject: RE: Fast capture stack trace on windows 64 bit / mixed mode...
    
    Your solution based on IXCLRDATAProcess sounds good to me.
    
    PerfView (https://www.microsoft.com/en-us/download/details.aspx?id=28567) – 
    that does what you are trying to build as well as a lot of other stuff – is 
    using IXCLRDATA* as well. You may be interested in 
    https://github.com/Microsoft/clrmd . It is set of managed wrappers for 
    IXCLRDATA* that are easier to use than the COM interfaces.
    

    What I have briefly tried out - this requires Visual Studio 2015 / C# 6.0.

    Also this technique is unusable. Like .net StackTrace / StackFrame are resolving call stack and symbol information right away - and I need to resolve symbol information afterwards (after stack trace capturing).

提交回复
热议问题