diff options
author | Andres G. Aragoneses <knocte@gmail.com> | 2012-12-11 00:40:02 +0000 |
---|---|---|
committer | Andres G. Aragoneses <knocte@gmail.com> | 2012-12-11 00:40:02 +0000 |
commit | 9563c7ebe70bbecf80fc9accc959c2445c1fd4fe (patch) | |
tree | 01bdee208a829abc685ae8252de5447a9bf760ab /src | |
parent | 3d3f7899465ee46e634b53c236401f612dac1492 (diff) |
build: use the gui-thread-check profiler module by default when debugging
Upcoming versions of gtk# (2.99.1 and higher) will bundle this useful
profiler module by default. To reduce the feedback loop between developers
and bug reporters, banshee will run it whenever launched with the --debug
flag or when running in uninstalled mode (via "make run").
This way the logs that we get will include any traces of GUI calls that
were incorrectly not sent to the main thread, which in occassions can cause
crashes or unexpected behaviour.
Even though this is not bundled in gtk# 2.x series, it may still useful to
try to run it at launch, in case the user has installed the profiler module
on his own, or advised by devs: https://github.com/slluis/gui-thread-check
Signed-off-by: Alexander Kojevnikov <alexander@kojevnikov.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Clients/Booter/banshee.linux.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Clients/Booter/banshee.linux.in b/src/Clients/Booter/banshee.linux.in index a2559403f..724a6d737 100644 --- a/src/Clients/Booter/banshee.linux.in +++ b/src/Clients/Booter/banshee.linux.in @@ -44,6 +44,10 @@ if [ ! -z "$BANSHEE_CLIENT" ]; then BANSHEE_CLIENT="--client=${BANSHEE_CLIENT}" fi +if [ "$BANSHEE_DEBUG" = "--debug" ] && [ "x$BANSHEE_PROFILE" = "x" ]; then + BANSHEE_PROFILE="--profile=gui-thread-check" +fi + # We were testing the SGen compacting GC; disabled for 2.0 release b/c there are serious # issues with sgen on Mono 2.8.0 #export MONO_ENV_OPTIONS="--gc=sgen" |