Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Num If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Str orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Print NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A os N/A sys string Template optparse OptionParser rdbtools RdbParser MemoryCallback PrintAllKeys StatsAggregator main N/A N/A N/A N/A N/A usage usage: %prog [options] /path/to/dump.rdb

Example 1 : %prog -k "user.*" -k "friends.*" -f memoryreport.html /var/redis/6379/dump.rdb
Example 2 : %prog /var/redis/6379/dump.rdb N/A parser N/A OptionParser usage usage N/A N/A N/A parser add_option -f --file dest output help Output file metavar FILE N/A N/A N/A parser add_option -k --key dest keys action append help Keys that should be grouped together. Multiple regexes can be provided N/A N/A options args N/A N/A parser parse_args N/A N/A N/A len args 0 N/A N/A N/A N/A parser error Redis RDB file not specified N/A dump_file N/A args N/A 0 N/A N/A N/A options output N/A N/A output redis_memory_report.html N/A N/A output N/A options output N/A stats N/A StatsAggregator N/A callback N/A MemoryCallback stats 64 N/A parser N/A RdbParser callback N/A N/A N/A parser parse dump_file N/A stats_as_json N/A N/A stats get_json N/A t N/A N/A N/A open N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ report.html.template read N/A report_template N/A Template t N/A html N/A N/A report_template substitute REPORT_JSON stats_as_json N/A html N/A N/A N/A __name__ __main__ N/A N/A N/A main