Skip to content
Snippets Groups Projects
Commit 7e3bc6dd authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Profile the launch of guestfs filesystems.

parent 69c0d4bc
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@ import os.path
from diffoscope.difference import Difference
from diffoscope.tools import python_module_missing
from diffoscope.profiling import profile
from .utils.file import File
from .utils.archive import Archive
......@@ -52,7 +53,8 @@ class FsImageContainer(Archive):
self.g.add_drive_opts(self.source.path, format="raw", readonly=1)
try:
logger.debug("Launching guestfs; this may take some time")
self.g.launch()
with profile("command", "guestfs"):
self.g.launch()
logger.debug("guestfs successful launched")
except RuntimeError:
logger.exception("guestfs failed to launch")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment