cherrypy.lib.gctools模块¶
- class cherrypy.lib.gctools.GCRoot[源代码]¶
基类:
object
用于测试引用泄漏的Cherrypy页处理程序。
- classes = [(<class 'cherrypy._cprequest.Request'>, 2, 2, 'Should be 1 in this request thread and 1 in the main thread.'), (<class 'cherrypy._cprequest.Response'>, 2, 2, 'Should be 1 in this request thread and 1 in the main thread.'), (<class 'cherrypy._cpwsgi.AppResponse'>, 1, 1, 'Should be 1 in this request thread only.')]¶
- class cherrypy.lib.gctools.ReferrerTree(ignore=None, maxdepth=2, maxparents=10)[源代码]¶
基类:
object
将一个对象的所有引用集合到给定深度的对象。
- peek_length = 40¶