Ivan, no, you do not need to instrument your dll to use the profiling APIs. Instead, you have to set an environment variable called COR_PROFILER. http://msdn.microsoft.com/en-us/library/bb384689.aspx has more info.
From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ryan Riley Sent: Tuesday, January 26, 2010 5:51 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Did Something Changed Again in Spec... On Tue, Jan 26, 2010 at 3:36 AM, Ivan Porto Carrero <i...@flanders.co.nz<mailto:i...@flanders.co.nz>> wrote: rcov has a pure ruby variant too IIRC. And for the sake of this discussion let's just say that that works as is with IronRuby. Then I'd be looking at the CLR profiling api again isn't it. And to enable that profiling API don't I have to instrument my dll with some constants so it knows it's going to be profiled? If that's true, then we could start looking into making it work with .dlls. What we may find is something similar to the mocking story: writing a new one is just easier and makes more sense, e.g. caricature. RCov may turn out to be useful only for Ruby apps and too difficult to make work with anything else. Here's an InfoQ link on some of the progress made by JRuby (and Rubinius' FFI): http://www.infoq.com/news/2008/07/jruby113-rcov-rubinius-ffi-mvm This might be helpful if we decide to attempt a straight port with C# extensions. Ryan Riley Email: ryan.ri...@panesofglass.org<mailto:ryan.ri...@panesofglass.org> LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core