view contrib/wsgi/ @ 2847:09e05a641722

fix #468 move moin table and zebra styling to common.css; restyles all basic theme Admin and User tables
author RogerHaase <>
date Sat, 01 Nov 2014 08:38:06 -0700
parents 4ac437141bbe
line wrap: on
line source
#!/usr/bin/env python
# Copyright: 2005 by MoinMoin:ThomasWaldmann
# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.

    MoinMoin - Print statistics gathered by hotshot profiler

    Usage: statsfile

    Typical usage:
     1. Edit and activate the hotshot profiler, set profile file name
     2. Run
     3. Do some request, with a browser, script or ab
     4. Stop
     5. Run this tool:

    Currently CGI and twisted also have a hotshot profiler integration.

def run():
    import sys
    from hotshot import stats

    if len(sys.argv) != 2:
        print __doc__

    # Load and print stats
    s = stats.load(sys.argv[1])
    s.sort_stats('cumulative', 'time', 'calls')

if __name__ == "__main__":