Wine Profiling

2008-06-08 Thread Stephen Eilert
Hi,

I'd like to know what's the procedure being used to profile Wine's code. 
More specifically, I want to try to track down slowdowns in some 
applcations, which requires profiling to identify where the bottlenecks are.

Are there any specific procedures or utilities to instrument and 
generate profiling reports?


Stephen




RE: Wine Profiling

2008-06-08 Thread Stefan Dösinger

 I'd like to know what's the procedure being used to profile Wine's code.
 More specifically, I want to try to track down slowdowns in some
 applcations, which requires profiling to identify where the bottlenecks
 are.
I am using oprofile every now and then to profile Games, but it is only of
limited use. It really depends on the sort of Application you want to
profile, and you should use specific tools for this. If your app mainly
utilizes the CPU, oprofile will be suitable. If it uses 3D graphics, you may
be more happy with things like the NVPerfkit or the MacOS OpenGL profiler(on
osx of course). Disk and Memory functionality may have their own profiler as
well.

The bottom line is that performance and efficiency isn't a linear scale, so
there is no ultimate tool for it.






Re: Wine Profiling

2008-06-08 Thread Thomas Kho
On Sun, Jun 8, 2008 at 11:23 AM, Stephen Eilert [EMAIL PROTECTED] wrote:
 Are there any specific procedures or utilities to instrument and
 generate profiling reports?

This is indirectly related to your question, but I'd really love to
see better DTrace support for Windows applications running in Wine.
Like Dan Kegel recently suggested about Valgrind, great analysis tools
might just be _the_ reason for Windows developers to develop/debug
using Wine ;) [1].

Here's some Wine + DTrace activity I dug up:

* Damian Wojsław recently suggested starting by adding function bounds probes
  http://www.winehq.org/pipermail/wine-devel/2007-December/061265.html

* DTrace providers for Wine are a long term goal for the OpenSolaris folks
  http://opensolaris.org/os/community/desktop/communities/wine/

* There's a bug report out there with DTrace output of wineserver attached
  http://bugs.winehq.org/show_bug.cgi?id=13227

-Tom

[1] The main point I took away from the OpenSolaris talk at the last
LugRadio Live conference was exactly this. Sun seriously thinks
Solaris niceties (think ZFS and DTrace up the application stack) +
friendly GNU userland is the key to attracting developers to
OpenSolaris. You could apply that same argument to Wine +
DTrace/Valgrind/OProfile/etc.