Forum for Profiling API questions (and more)

The debugging forum has recently had its scope expanded to managed-code tool development in general, including profilers.  So if you’re looking for more information on the profiling API or have a question, be sure to check out the forum here: http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=868&SiteID=1.

0

WOW64 and Your Profiler

Has this ever happened to you? My profiler loads and runs great on my 32 bit box. But when I try to run it on a 64 bit box, it never loads. Shouldn’t the WOW just make this all work?! When it comes to running your profilers on 64 bit boxes, there aren’t any special…

9

Bug! Inspecting Value-Type Returns Workaround #2

12/6/2007 Update: The bug described below has been fixed in CLR 2.0 SP1.  (See this post for more info.)  However, you may still find this info useful as a tutorial on performing IL rewriting. Previously, I posted about a bug with using the CLR Profiling API to inspect value-type return values. The workaround I described…

9

Add local to LocalVarSig

All source code is provided as is, with no warranties intended or implied. Use at your own risk. // Parse the local variables signature for the method we’re rewriting, create a new // localvar signature containing one new local, and return the 0-based ordinal for // that new local. UINT AddNewLocal() {     // Get…

1

Bug! Inspecting Value-Type Returns

12/6/2007 Update: The bug described below has been fixed in CLR 2.0 SP1.  (See this post for more info.)  However, you may still find this info useful as a tutorial on performing IL rewriting. Holger, a helpful reader of this blog, has pointed out a bug in the CLR Profiling API, in how it enables…

5