WPF Performance and .NET Framework Client Profile

WPF performance and .NET Framework Client Profile related blogs provided by Jossef Goldberg.

WPFPerf Performance Profiling Tools for WPF 4 is now available!

WPFPerf Performance Profiling Tools for WPF 4 is now available!

  • Comments 17

The WPFPerf tool comprises of a suite of performance profiling tools that allow you to analyze the run-time behavior of your WPF application and point to potential performance bottlenecks.
We finally release the version that also supports .NET Framework 4 (WPF 4).

This version of the tool (WPFPerf 4) will allow you to profile both WPF 3.5 SP1 and WPF 4 based applications.
The WPFPerf 4 tool is included with the Windows SDK for Windows 7 and .NET Framework 4 (Windows SDK 7.1). So you are welcome to download and send us your feedback.

By the way, the tool itself will run on machines with only .NET 3.5 SP1 or only .NET 4, if both are present it will use .NET 3.5 SP1.
Also, I am not sure how many people had a chance to look at the documentation that is installed with the tool , but we think it is very useful so don't forget to check it out.

Update (6/14/2010):
We heard that few folks complain that the Visual Profiler cannot correctly attach to the WPF application in the new WPFPerf for WPF 4.
After some research we think this has to do with a bug in our DateTime initialization which cause anyone in a time zone > GMT to not get any data in VisualProfiler (for a few hours at least).
Until we post a fix, a temporary workaround is to set your time zone > GMT (e.g.to Eastern or Pacific Standard Time Zones) when you first attach VisualProfiler.

Please try this workaround and let us know.

Update (8/24/2010):
A patch to that fixes the bug in Visual Profiler for certain time zones is now available.
See here.

Leave a Comment
  • Please add 7 and 7 and type the answer here:
  • Post
  • For .NET 4 it does not work for me: 'This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.'

  • For .NET 4 it does not work for me: 'This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.' occurs.

  • For me also says 'This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded' for a wpf 4.0 application.

    Also, the Visual Profiler does not do anything when I choose to profile my WPF 4.0 application

  • the Perforator works for me, but the Visual Profiler can't collect any data while profiling, what's wrong ?

  • "the Perforator works for me, but the Visual Profiler can't collect any data while profiling, what's wrong ?"

    I'm having this exact same issue, can't seem to find a solution.

  • Hi Guys
    We have seen similar reports with the latest WpfPerf tool.
    In some situations simply setting focus on the app or resizing it seems to address the issues w/ Visual Profiler.
    If this did not help, to help us investigate, can you please provide more data. E.g.:
    1.What OS / Service pack are you running ?  Is it 32 or 64 bit OS?
    2.Is your app 32 or 64 bit (e.g. complied  for “x86”, “x64” or “AnyCPU” ?)
    3.Is your app targeting NET4 or 3.5 SP1?
    4.Do you have both .NET 3.5 SP1 and  NET4 installed on your machine?
    5.Is WpfPerf not working when you attach the app ? or launch it from WpfPerf ? (can you please try both)
    6.Are you doing anything unusual in your app (e.g. Hosting 3.5 from your NET4 app, profiling XBAPs)
    7.Is the issue only w/ Visual Profiler or also Perforator ?

    Thanks in adavnce.
    Jossef

  • Visual Profiler tool is not working. Even on sample application this tool did not work prefactor is working fine. I am using windows 7 x86 and latest Pref tool for .net 4  and sdk 7.1

  • We heard that few folks complain that the Visual Profiler cannot correctly attach to the WPF application.

    After some research we think this has to do with a bug in our  DateTime initialization which cause anyone in a time zone > GMT to not get any data in VisualProfiler (for a few hours at least).

    Until we post a fix, a temporary workaround is to set your time zone > GMT (e.g.to Eastern or Pacific Standard Time Zones) when you first attach VisualProfiler.

    Please try this workaround and let us know.

    Jossef.

  • Hi,

    Im in the UK. I was having a problem when attaching or launching from the Visual Profiler an no info was coming back. I set my Time Zone to (UTC -5:00) Eastern Time (US & Canada) and it worked right away... Any chance on fixing this otherwise very useful tool?

    Thank you,

    Adam

  • I'm running version 3.1.0.0 of the PPT for WPF. It works fine for net3 apps but dose not reconize net4 apps.

    I click Launch Process and select my application and  click Launch. The app starts but the profiler is still waiting for the app to start.

    I've tried to change the timezone but it dose not fix the problem.

  • Forgot to mention:

    When the app is running and I choose to select process the aplication is shown in the list but is grayed out and its not possible to select it.

  • Found the problem - the 7.1 dose not update the WPF Performance toolkit. I looked through the 7.1 installer log and found the url to the toolkit, downloaded it and installed it. Now it works fine....

  • Sigurdur, could you share where you found the installer log or the link to the toolkit?   I'm having the same problem and searching for the log...

  • We had the same problem in Portugal , me , Bruno Sivla and our team, i just found this post again and made the swich on my local time to pacific time and ti works.

    Thanks.

    ps - you should release an update.

  • We had the same problem in Portugal , me , Bruno Sivla and our team, i just found this post again and made the swich on my local time to pacific time and ti works.

    Thanks.

    ps - you should release an update.

Page 1 of 2 (17 items) 12