Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / October 2004

Tip: Looking for answers? Try searching our database.

CLR Profiler Hotspots Tracker Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jack Wright - 15 Oct 2004 09:25 GMT
Dear All,
  I am using the Hotspots tacker dll provided by MS under
D:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Tool
Developers Guide\Samples\profiler\hst_profiler...
I am able to get the log output but I am always getting the following
error in the log file...
"Unable to Retreive Information about the Function Name, Parameters
and Return Type"

What could be the problem? Please help...

TALIA

Many Regards
Jack
"Jonathan Keljo [MS]" - 29 Oct 2004 17:21 GMT
Hey Jack,
     First I thought I'd give you a heads-up for the future. The
profiler_hst sample code that you've compiled, and the other profiler
samples in the SDK, don't ship with Whidbey--the CLR Profiler sample
(http://www.microsoft.com/downloads/details.aspx?FamilyId=86CE6052-D7F4-4AEB
-9B7A-94635BEEBDDA&displaylang=en) demonstrates all the same things, so
those smaller samples became redundant. Also, again just a heads-up, the
behavior of the profiling API with Whidbey has changed to such an extent
that if you will need to make some updates to your tool for it to continue
working against Whidbey. The profiling docs in the Whidbey Beta 1 SDK have
details about exactly what those updates would be.

    However back to debugging the problem at hand. I did a quick search of
the hst_profiler sample, and that message string occurs in only two places
in profilerinfo.cpp. If it's a pretty consistently-reproducible issue, I'd
recommend setting breakpoints at both of them to start with and try to
figure out which functions are having problems getting information. Then
you could set conditional breakpoints to fire when just those functions are
being processed to walk through and isolate where the failure is coming
from. Debugging profilers is a little tricky because of the whole
environment-variable-activation thing. The VS Whidbey debugger has some
neat features that let you set the environment of the target process which
makes that a LOT easier, but if you don't have Whidbey one relatively
simple workaround is to put a long sleep in your code--either the profiler
Initialize callback or the target process code, it doesn't really
matter--and attach a debugger during that sleep. (If you're attaching VS,
make sure you pick "native only" rather than "auto.")

HTH,

Jonathan

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: sunil@volcanomail.com (Jack Wright)
| Newsgroups: microsoft.public.dotnet.framework.clr
[quoted text clipped - 7 lines]
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1097828756 17121 127.0.0.1 (15 Oct 2004
08:25:56 GMT)
| X-Complaints-To: groups-abuse@google.com
| NNTP-Posting-Date: Fri, 15 Oct 2004 08:25:56 +0000 (UTC)
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.glorb.com!postnews1.google.com!not-for-mail
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.clr:12070
| X-Tomcat-NG: microsoft.public.dotnet.framework.clr
[quoted text clipped - 14 lines]
| Many Regards
| Jack

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.