This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
`appengine_config.py` gets loaded every time a new instance is started. | |
Use this file to configure app engine modules as defined here: | |
https://developers.google.com/appengine/docs/python/tools/appengineconfig | |
""" | |
def add_vendor_packages(vendor_folder): | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import defaultdict | |
import gc | |
class MemoryProfilingMiddleware(object): | |
def __init__(self, app): | |
self.app = app | |
#gc.set_debug(gc.DEBUG_LEAK) | |
self.last_count = 0 |
NewerOlder