diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2018-11-28 19:40:16 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-06 12:19:28 +0100 |
commit | a5be893b19daf9e1f08eacc5d7f01389f6e40956 (patch) | |
tree | 1497e3a6e6d0d3efc172160f99306852ccc73ca4 /mesonbuild/msetup.py | |
parent | 74274e23ca42260e9be24c3cfaf7550c6c1505d2 (diff) | |
download | meson-a5be893b19daf9e1f08eacc5d7f01389f6e40956.zip meson-a5be893b19daf9e1f08eacc5d7f01389f6e40956.tar.gz meson-a5be893b19daf9e1f08eacc5d7f01389f6e40956.tar.bz2 |
Some code cleanup
Diffstat (limited to 'mesonbuild/msetup.py')
-rw-r--r-- | mesonbuild/msetup.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/msetup.py b/mesonbuild/msetup.py index 88c9251..491ea2f 100644 --- a/mesonbuild/msetup.py +++ b/mesonbuild/msetup.py @@ -221,7 +221,11 @@ class MesonApp: intro_tests = intr.backend.create_test_serialisation(b.get_tests()) intro_benchmarks = intr.backend.create_test_serialisation(b.get_benchmarks()) intro_install = intr.backend.create_install_data() - mintro.generate_introspection_file(b, intr.backend) + if self.options.profile: + fname = os.path.join(self.build_dir, 'meson-private', 'profile-introspector.log') + profile.runctx('mintro.generate_introspection_file(b, intr.backend)', globals(), locals(), filename=fname) + else: + mintro.generate_introspection_file(b, intr.backend) except: if 'cdf' in locals(): old_cdf = cdf + '.prev' |