theseus icon indicating copy to clipboard operation
theseus copied to clipboard

Support Asp.net for server call tracking

Open imdark opened this issue 11 years ago • 3 comments

I started working on implementing this, my idea is to implement and agent wrapper around the intlitrace file so that I can see method calls and parameters when using asp.net as a backend. The main issue is that intlitrace locks the .trace file while writing to it so the data cannot be read while the process has not stopped on a breakpoint. Maybe this Behavior can be changed or removed (I am using this article as a reference: http://www.wintellect.com/blogs/jrobbins/vs-2010-beta-2-intellitrace-in-depth-first-look). One option is to copy the basic api and implement my own basic tracer profiler. (I have done something similar in the past with the .net debugging api). Another is to use il weeving to create interceptors for method calls (just like the way intlitrace does it)

imdark avatar Jun 23 '14 20:06 imdark

Sounds like an awesome project! I'll help in whatever way I can (though I haven't used any of the things you're talking about for a decade, and I don't have Windows :).

alltom avatar Jun 30 '14 22:06 alltom

Cool, a small update it does not seem possible to configure itrace to keep the file unlocked. I guess its a performance choice by Microsoft, but it does seem that the collector is using memory mapped file for ipc for buffering the data before flushing into the .Itrace file so i think i might be able to hook into this file and read parameters this way. I have found mmap for reading mmf do you know of any better way to read mmf?

imdark avatar Jul 02 '14 19:07 imdark

Sorry, I don't.

alltom avatar Jul 02 '14 19:07 alltom