Francesco Romani has posted comments on this change.
Change subject: profiling: Add an application wide profile
......................................................................
Patch Set 9:
(1 comment)
http://gerrit.ovirt.org/#/c/26113/9/lib/vdsm/profile.py
File lib/vdsm/profile.py:
Line 45: logging.debug("Stopping profiling")
Line 46: yappi.stop()
Line 47: stats = yappi.get_func_stats()
Line 48: path = os.path.join(constants.P_VDSM_RUN, 'vdsmd.prof')
Line 49: stats.save(path, config.get('vars', 'profile_format'))
As personal taste, I'd like to see the input sanitized here.
Line 50:
Line 51:
Line 52: def is_enabled():
Line 53: return config.getboolean('vars', 'profile_enable')
--
To view, visit
http://gerrit.ovirt.org/26113
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I523f52c981f7bb34f3168d3117f00ed5eb6962f8
Gerrit-PatchSet: 9
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsoffer(a)redhat.com>
Gerrit-Reviewer: Adam Litke <alitke(a)redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Antoni Segura Puimedon <asegurap(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce(a)redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani(a)redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer(a)redhat.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi(a)redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes