diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2018-09-11 15:49:47 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2018-11-26 14:15:33 +0800 |
commit | 4eb785cdc0446539bf5e7eb66bf7ad46ba5705dd (patch) | |
tree | 3703ffe374141ff2816b1b3adf6c54ec1bdcf722 /python/servo/build_commands.py | |
parent | 7c65505df3fff47f43062da20088113631ed9ae0 (diff) | |
download | servo-4eb785cdc0446539bf5e7eb66bf7ad46ba5705dd.tar.gz servo-4eb785cdc0446539bf5e7eb66bf7ad46ba5705dd.zip |
introduce a background-hang-monitor:
Mac-Os implementation of a thread sampler,
Linux and Windows skeleton implementations.
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r-- | python/servo/build_commands.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index b6b0a413026..f486515560f 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -192,10 +192,14 @@ class MachCommands(CommandBase): default=None, action='store_true', help='Build the libsimpleservo library instead of the servo executable') + @CommandArgument('--with-frame-pointer', + default=None, + action='store_true', + help='Build with frame pointer enabled, used by the background hang monitor.') def build(self, target=None, release=False, dev=False, jobs=None, features=None, android=None, magicleap=None, no_package=False, verbose=False, very_verbose=False, debug_mozjs=False, params=None, with_debug_assertions=False, - libsimpleservo=False): + libsimpleservo=False, with_frame_pointer=False): opts = params or [] @@ -288,6 +292,9 @@ class MachCommands(CommandBase): if with_debug_assertions: env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C debug_assertions" + if with_frame_pointer: + env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C force-frame-pointers=yes" + if android: if "ANDROID_NDK" not in env: print("Please set the ANDROID_NDK environment variable.") |