Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Profiler - Correct way to get Typedef name and Method Name.

$
0
0
Hi,

I am able to get the Typedef name and Method name from IMetaDataImport class using GetTypeDefProps and GetMethodProps.


But it is not giving the correct way of representation.. Eg: 

I am getting "ServerExecuteHttpHandlerAsyncWrapper:EndProcessRequest" by IMetaDataImport.

But what it should something like

"System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper:EndProcessRequest"

Likewise another example :

"<>c__DisplayClassb:<BeginProcessRequest>b__5" should be like  "System.Web.Mvc.MvcHandler+<>c__DisplayClass6+<>c__DisplayClassb:<BeginProcessRequest>b__5"

So my questions are :

1.How should i get the method and typedef names ..?
2.I tried using stacktrace inside the helper function to get the method name .. But it caused more overhead..! Is this the correct way ? 


Thanks,

./Selva



Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>