[PATCH] Fix performance problem in debug tracing

Alexandre Julliard julliard at winehq.org
Tue Sep 1 07:10:39 CDT 2015


Daniel Santos <daniel.santos at pobox.com> writes:

> Currently, if any classes are passed to WINEDEBUG (nb_debug_options > 0) then
> the initial lazy-init call to __wine_dbg_get_channel_flags() never sets the
> flags in the struct __wine_debug_channel in the object file, resulting in all
> 45k trace calls in wine making a function call, running bsearch on
> debug_options with string compare, etc.

Not really. Only the channel that is actually enabled will make repeated
function calls. This is done on purpose so that you can toggle it on and
off for a given process from the task manager.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list