Thread Names

Questions about YourKit .NET Profiler
Post Reply
feal
Posts: 10
Joined: Wed Jun 24, 2009 4:38 pm

Thread Names

Post by feal »

A simple question...why the 4.*.* version of YourKit .NET profiler does not recognize all thread names while in the older 3.*.* (i tested it some months ago, i don't remember the exact number) it worked without problems?

The test app is the same as before (no change at all, it is just an example app to evaluate the software).
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Re: Thread Names

Post by Vladimir Kondratyev »

Please send us example application (executable is enough, but source code is better) which reproduces the problem.
feal
Posts: 10
Joined: Wed Jun 24, 2009 4:38 pm

Re: Thread Names

Post by feal »

Just use this code with any kind of ThreadBug function, it will report the "thd" Thread as unnamed in the CPU profiling results AND in the stack trace.

Code: Select all

            
Thread.CurrentThread.Name = "Mah";

Thread thd = new Thread(new ThreadStart(ThreadBug));
thd.Name = "boh";
thd.Start();
while it work if I change the name from inside the ThreadBug function. (in YourKit Profiler 3.x.x it worked on ALL cases as i remember)
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Thread Names

Post by Anton Katilin »

Hello,

Thank you for the detail.

The problem will be fixed in upcoming build 4.0.4.

Best regards,
Anton
Post Reply