Skip to content

Instantly share code, notes, and snippets.

@nutjob4life
Created June 10, 2020 15:06
Show Gist options
  • Save nutjob4life/318731eaaa5918d48332479159b36a62 to your computer and use it in GitHub Desktop.
Save nutjob4life/318731eaaa5918d48332479159b36a62 to your computer and use it in GitHub Desktop.
Quick and dirty profiling for Plone
--- /Users/kelly/.buildout/eggs/plone.recipe.zope2instance-4.4.1-py2.7.egg/plone/recipe/zope2instance/ctl.py 2020-06-10 10:04:50.000000000 -0500
+++ /tmp/ctl.py 2020-06-10 10:05:10.000000000 -0500
@@ -578,6 +578,7 @@
if debug or zopectl.WIN:
try:
+ command = ['/usr/local/opt/python@2/bin/python2.7', '-m', 'cProfile', '-o', '/tmp/stats', '/Users/kelly/Documents/Clients/JPL/Cancer/Portal/Development/P5/parts/zope-debug/bin/interpreter', '/Users/kelly/.buildout/eggs/Zope2-2.13.27-py2.7.egg/Zope2/Startup/run.py', '-C', '/Users/kelly/Documents/Clients/JPL/Cancer/Portal/Development/P5/parts/zope-debug/etc/zope.conf', '-X', 'debug-mode=on']
self._exitstatus = subprocess.call(command, env=env)
except KeyboardInterrupt:
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment