write barrier performance impact

Code profiling for .NET Developers

write barrier performance impact

Postby vcbnvbm » Thu Feb 10, 2011 4:33 am

It seems, ANTS profiler is not aware of write barrier performance impact? At least, in my sample it didn't show the real place which executed very slowly (because of write barrier)
Posts: 9
Joined: Sat Sep 25, 2010 10:06 am

Postby Brian Donahue » Sat Mar 19, 2011 11:44 am

Sorry for the delay, but I did eventually get an answer to this question after asking around.

The profiler measures real time spent in any given place, so that should include time caused by write barriers. It's possible that something else the profiler does causes the behaviour of the CLR to be different in such a way that the performance issue does not occur (line-level timing in particular will change this performance): switching to one of the profiling modes marked as 'more accurate' will report this; sampling should be particularly representative of the real performance of the application.

In general, it's not possible to measure the performance of a single write barrier, only the cumulative effect of them over a longer period of time.
Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 9:48 am

Return to ANTS Performance Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests