diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-02-26 15:45:34 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-02-26 15:45:34 +0900 |
commit | 1569bc18f4289d9b14786c77e9c260a86cc772bc (patch) | |
tree | 6b2f39324b1ffa3e91eff217bc42e8861c283494 /buildstream/project.py | |
parent | b7036328025543e648f870d62e9ce305c69de5fd (diff) | |
download | buildstream-1569bc18f4289d9b14786c77e9c260a86cc772bc.tar.gz |
project.py: Profile the project loading
Diffstat (limited to 'buildstream/project.py')
-rw-r--r-- | buildstream/project.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/project.py b/buildstream/project.py index 8304a0bea..d9dea7bcc 100644 --- a/buildstream/project.py +++ b/buildstream/project.py @@ -39,6 +39,7 @@ import multiprocessing # for cpu_count() from . import _site from . import _yaml from . import _loader # For resolve_arch() +from ._profile import Topics, profile_start, profile_end # The separator we use for user specified aliases @@ -71,7 +72,9 @@ class Project(): self._plugin_source_paths = [] # Paths to custom sources self._plugin_element_paths = [] # Paths to custom plugins + profile_start(Topics.LOAD_PROJECT, self.directory.replace(os.sep, '-')) self._load(arch) + profile_end(Topics.LOAD_PROJECT, self.directory.replace(os.sep, '-')) def translate_url(self, url): """Translates the given url which may be specified with an alias |