diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-03-12 17:05:09 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-03-12 17:05:09 +0000 |
commit | 3a716d2b9035a136a0bfa405dd20c2a1b47dde07 (patch) | |
tree | b4cf8a2f771ee16afc1f74e3f1188b041d5e76d0 /SConstruct | |
parent | 84af9f18ebd755a10f1b902d41a9730639467dbb (diff) |
add GPROFILE scons option; fix spectacular CPU usage sawtooth caused by constant redraw of entire rects when their bounds change
git-svn-id: svn://localhost/ardour2/trunk@1576 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 79ac56b6f0..95fa911a8d 100644 --- a/SConstruct +++ b/SConstruct @@ -44,6 +44,7 @@ opts.AddOptions( BoolOption('UNIVERSAL', 'Compile as universal binary. Requires that external libraries are already universal.', 0), BoolOption('VERSIONED', 'Add revision information to ardour/gtk executable name inside the build directory', 0), BoolOption('VST', 'Compile with support for VST', 0), + BoolOption('GPROFILE', 'Compile with support for gprofile (Developers only)', 0), BoolOption('TRANZPORT', 'Compile with support for Frontier Designs (if libusb is available)', 1) ) @@ -531,7 +532,10 @@ env = conf.Finish() # opt_flags = [] -debug_flags = [ '-g' ] +if env['GPROFILE'] == 1: + debug_flags = [ '-g', '-pg' ] +else: + debug_flags = [ '-g' ] # guess at the platform, used to define compiler flags |