[Checkins] SVN: keas.profile/trunk/ Remove pyprof2calltree support; looks like it's buggy (or incompatible with

Marius Gedminas marius at pov.lt
Fri Aug 6 17:55:24 EDT 2010


Log message for revision 115528:
  Remove pyprof2calltree support; looks like it's buggy (or incompatible with
  Python 2.6) and just breaks everything.
  
  

Changed:
  U   keas.profile/trunk/CHANGES.txt
  U   keas.profile/trunk/README.txt
  U   keas.profile/trunk/setup.py
  U   keas.profile/trunk/src/keas/profile/profiler.py

-=-
Modified: keas.profile/trunk/CHANGES.txt
===================================================================
--- keas.profile/trunk/CHANGES.txt	2010-08-06 17:11:17 UTC (rev 115527)
+++ keas.profile/trunk/CHANGES.txt	2010-08-06 21:55:23 UTC (rev 115528)
@@ -6,6 +6,8 @@
 0.2.0 (unreleased)
 ------------------
 
+- Remove pyprof2calltree support; looks like it's buggy (or incompatible with
+  Python 2.6) and just breaks everything.
 
 
 0.1.0 (2008-12-12)

Modified: keas.profile/trunk/README.txt
===================================================================
--- keas.profile/trunk/README.txt	2010-08-06 17:11:17 UTC (rev 115527)
+++ keas.profile/trunk/README.txt	2010-08-06 21:55:23 UTC (rev 115528)
@@ -16,11 +16,3 @@
 ``paster``.  When you access your web application, every page will have the
 profiler output appended to the end of the document body.
 
-
-Viewing profiles with KCacheGrind
----------------------------------
-
-KCacheGrind is a GUI application for digging through the profile data and
-visualizing call trees.  keas.profile uses pyprof2calltree to convert the
-profiler data into KCacheGrind format for your convenience.  To view it,
-open the log file (``profile.log.tmp.kgrind`` by default) in KCacheGrind.

Modified: keas.profile/trunk/setup.py
===================================================================
--- keas.profile/trunk/setup.py	2010-08-06 17:11:17 UTC (rev 115527)
+++ keas.profile/trunk/setup.py	2010-08-06 21:55:23 UTC (rev 115528)
@@ -46,7 +46,6 @@
     install_requires=[
         'setuptools',
         'paste',
-        'pyprof2calltree',
         ],
     include_package_data=True,
     zip_safe=False,

Modified: keas.profile/trunk/src/keas/profile/profiler.py
===================================================================
--- keas.profile/trunk/src/keas/profile/profiler.py	2010-08-06 17:11:17 UTC (rev 115527)
+++ keas.profile/trunk/src/keas/profile/profiler.py	2010-08-06 21:55:23 UTC (rev 115528)
@@ -98,14 +98,6 @@
             body += '<pre style="%s">%s\n%s</pre>' % (
                 self.style, cgi.escape(output), cgi.escape(output_callers))
             response.replace_header(headers, 'Content-Length', str(len(body)))
-            try:
-                import pyprof2calltree
-            except ImportError:
-                pass
-            else:
-                # Use kcachegrind to view the profile interactively.
-                pyprof2calltree.convert(profiler.getstats(),
-                                        self.log_filename + '.kgrind')
             return [body]
         finally:
             self.lock.release()



More information about the checkins mailing list