Exemple #1
0
def tracker_class(clsname):
    """Get class instance details."""
    stats = server.stats
    if not stats:
        bottle.redirect('/tracker')
    stats.annotate()
    return dict(stats=stats, clsname=clsname)
Exemple #2
0
def show_documentation():
    """Redirect to online documentation."""
    bottle.redirect('http://packages.python.org/Pympler')
Exemple #3
0
def refresh():
    """Clear all cached information."""
    server.clear_cache()
    bottle.redirect('/')
def show_documentation():
    """Redirect to online documentation."""
    bottle.redirect('http://packages.python.org/Pympler')
def refresh():
    """Clear all cached information."""
    cache.clear()
    bottle.redirect('/')
def tracker_class(clsname):
    """Get class instance details."""
    stats = cache.stats
    if not stats:
        bottle.redirect('/tracker')
    return dict(stats=stats, clsname=clsname)