| |
@@ -109,7 +109,7 @@
|
| |
|
| |
kickstart.close()
|
| |
|
| |
- def get_pungi_cmd(self, config, destdir, name, version=None, flavor=None, selfhosting=False, fulltree=False, greedy=None, nodeps=False, nodownload=True, full_archlist=False, arch=None, cache_dir=None, lookaside_repos=None, multilib_methods=None):
|
| |
+ def get_pungi_cmd(self, config, destdir, name, version=None, flavor=None, selfhosting=False, fulltree=False, greedy=None, nodeps=False, nodownload=True, full_archlist=False, arch=None, cache_dir=None, lookaside_repos=None, multilib_methods=None, profiler=False):
|
| |
cmd = ["pungi"]
|
| |
|
| |
# Gather stage
|
| |
@@ -169,7 +169,7 @@
|
| |
|
| |
return cmd
|
| |
|
| |
- def get_pungi_cmd_dnf(self, config, destdir, name, version=None, flavor=None, selfhosting=False, fulltree=False, greedy=None, nodeps=False, nodownload=True, full_archlist=False, arch=None, cache_dir=None, lookaside_repos=None, multilib_methods=None):
|
| |
+ def get_pungi_cmd_dnf(self, config, destdir, name, version=None, flavor=None, selfhosting=False, fulltree=False, greedy=None, nodeps=False, nodownload=True, full_archlist=False, arch=None, cache_dir=None, lookaside_repos=None, multilib_methods=None, profiler=False):
|
| |
cmd = ["pungi-gather"]
|
| |
|
| |
# path to a kickstart file
|
| |
@@ -203,6 +203,9 @@
|
| |
for i in lookaside_repos:
|
| |
cmd.append("--lookaside=%s" % i)
|
| |
|
| |
+ if profiler:
|
| |
+ cmd.append("--profiler")
|
| |
+
|
| |
return cmd
|
| |
|
| |
def parse_log(self, f):
|
| |
pungi-gather
(the tool that underlies both thepkgset
andgather
phases) contains profiling code that will log statistics about how long
different function calls take. However, pungi-koji did not contain a
way to pass the
--profiler
argument to enable this.This change adds a new configuration option
gather_profiler
which,when set to true, simply passes the argument to
pungi-koji
. Hopefullythis can help shed some light on what is happening in some of our
longer-running composes.
Signed-off-by: Ralph Bean rbean@redhat.com