Module Expr Str ImportFrom alias alias alias Import alias Import alias Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str Assign NameStore Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Break With Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMult Call NameLoad Call AttributeLoad NameLoad attr Num Num Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call NameLoad BinOpMod Str NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call NameLoad Str Assign NameStore Dict With Call NameLoad Str Str NameStore body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str attr BinOpMult Call NameLoad SubscriptLoad NameLoad Index Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Import alias If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad BinOpMult SubscriptLoad NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGt SubscriptLoad NameLoad Index Num Num body Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args defaults kwarg body FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list
N/A N/A 
Airspeed Velocity benchmark utilities
 __future__ division absolute_import print_function N/A sys N/A re N/A time N/A textwrap N/A subprocess Benchmark N/A object N/A N/A 
    Base class with sensible options
     N/A goal_time 0.25 N/A run_monitored N/A N/A code N/A N/A N/A 
    Run code in a new Python process, and monitor peak memory usage.

    Returns
    -------
    duration : float
        Duration in seconds (including Python startup time)
    peak_memusage : float
        Peak memory usage (rough estimate only) in bytes

     N/A N/A N/A N/A N/A sys platform startswith linux N/A N/A N/A RuntimeError Peak memory monitoring only works on Linux N/A code N/A N/A textwrap dedent code N/A process N/A N/A subprocess Popen N/A N/A sys executable -c code N/A peak_memusage -1 N/A start N/A N/A time time N/A True N/A N/A ret N/A N/A process poll N/A N/A ret None N/A N/A N/A N/A open N/A /proc/%d/status N/A process pid r f N/A N/A procdata N/A N/A f read N/A m N/A N/A re search VmRSS:\s*(\d+)\s*kB procdata N/A N/A re S N/A re I N/A N/A m None N/A N/A memusage N/A N/A float N/A N/A m group 1 1000.0 N/A peak_memusage N/A max memusage peak_memusage N/A N/A N/A time sleep 0.01 N/A N/A N/A process wait N/A duration N/A N/A N/A time time start N/A N/A N/A process returncode 0 N/A N/A N/A AssertionError N/A Running failed:
%s code N/A N/A duration peak_memusage N/A get_mem_info N/A N/A N/A N/A N/A Get information about available memory N/A N/A N/A N/A N/A sys platform startswith linux N/A N/A N/A RuntimeError Memory information implemented only for Linux N/A info N/A N/A N/A open /proc/meminfo r f N/A N/A line f N/A N/A p N/A N/A line split N/A N/A info N/A N/A N/A N/A N/A N/A p N/A 0 strip : lower N/A N/A float N/A p N/A 1 1000.0 N/A info N/A set_mem_rlimit N/A N/A max_mem N/A None N/A N/A 
    Set address space rlimit
     N/A resource N/A N/A max_mem None N/A N/A mem_info N/A get_mem_info N/A max_mem N/A int N/A N/A mem_info N/A memtotal 0.7 N/A cur_limit N/A N/A resource getrlimit N/A resource RLIMIT_AS N/A N/A N/A cur_limit N/A 0 0 N/A N/A max_mem N/A min max_mem N/A cur_limit N/A 0 N/A N/A N/A resource setrlimit N/A resource RLIMIT_AS N/A max_mem N/A cur_limit N/A 1 N/A with_attributes N/A N/A N/A attrs N/A decorator N/A N/A func N/A N/A N/A N/A key value N/A N/A attrs items N/A N/A N/A setattr func key value N/A func N/A N/A decorator N/A