Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias Import alias Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore SubscriptLoad AttributeLoad Call NameLoad attr Index Str FunctionDef arguments args defaults body Expr Str Global identifier Assign NameStore NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Global identifier Assign NameStore NameLoad Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad handlers ExceptHandler type NameLoad body Pass TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args defaults body Import alias Global identifier identifier identifier identifier identifier identifier Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad Num BinOpSub NameLoad NameLoad Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If NameLoad body Assign NameStore Num If CompareLt NameLoad NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad BinOpDiv Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad orelse Expr Call NameLoad Str Assign NameStore NameLoad decorator_list FunctionDef arguments args defaults body Import alias Import alias Global identifier identifier Assign NameStore Num Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore BinOpDiv Num NameLoad While NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpOr UnaryOpNot NameLoad CompareGt NameLoad NameLoad body If CompareGt NameLoad NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Break AugAssignAdd NameStore Num decorator_list FunctionDef arguments args defaults body Expr Str Import alias Import alias Global identifier identifier Assign NameStore Call AttributeLoad NameLoad attr Import alias Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A Use Linux perf tool to interrogate the CPU's performance counters __future__ division __future__ absolute_import __future__ print_function __future__ unicode_literals N/A os N/A time N/A memory_profiler IPython get_ipython N/A perf_process N/A previous_call_memory_usage N/A N/A N/A memory_profiler memory_usage N/A 0 N/A t1 N/A N/A time time N/A keep_watching True N/A peak_memory_usage -1 N/A perf_proc None N/A watching_memory True N/A input_cells N/A N/A N/A get_ipython user_ns N/A In start_watching_memory N/A N/A N/A N/A N/A Register memory profiling tools to IPython instance. N/A watching_memory N/A watching_memory True N/A ip N/A get_ipython N/A N/A N/A N/A ip events register post_run_cell watch_memory N/A N/A N/A N/A ip events register pre_run_cell pre_run_cell N/A stop_watching_memory N/A N/A N/A N/A N/A Unregister memory profiling tools from IPython instance. N/A watching_memory N/A watching_memory False N/A ip N/A get_ipython N/A N/A N/A N/A N/A N/A ip events unregister post_run_cell watch_memory N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A N/A N/A ip events unregister pre_run_cell pre_run_cell N/A N/A N/A ValueError N/A N/A N/A watch_memory N/A N/A N/A N/A N/A time N/A previous_call_memory_usage peak_memory_usage keep_watching perf_proc watching_memory input_cells N/A new_memory_usage N/A N/A N/A memory_profiler memory_usage N/A 0 N/A memory_delta N/A new_memory_usage previous_call_memory_usage N/A keep_watching False N/A peaked_memory_usage N/A max 0 N/A peak_memory_usage new_memory_usage N/A time_delta_secs N/A N/A N/A time time t1 N/A perf_values N/A N/A perf_proc N/A N/A MIN_TIME_TO_GET_PERF_SAMPLE 0.2 N/A N/A time_delta_secs MIN_TIME_TO_GET_PERF_SAMPLE N/A N/A N/A print N/A N/A PAUSING to get perf sample for {}s format MIN_TIME_TO_GET_PERF_SAMPLE N/A N/A N/A time sleep MIN_TIME_TO_GET_PERF_SAMPLE N/A perf_values N/A N/A perf_process finish_perf perf_proc N/A cmd N/A output_template Used {memory_delta:0.4f} MiB RAM in {time_delta:0.2f}s, peaked {peaked_memory_usage:0.2f} MiB above current, total RAM usage {memory_usage:0.2f} MiB N/A output N/A N/A output_template format time_delta time_delta_secs cmd cmd memory_delta memory_delta peaked_memory_usage peaked_memory_usage memory_usage new_memory_usage N/A N/A print N/A str output N/A perf_values N/A N/A perf_average N/A int N/A N/A sum perf_values N/A float time_delta_secs N/A N/A print N/A N/A perf value for {} averages to {:,}/second format N/A perf_process EVENT_TYPE perf_average N/A N/A N/A print perf - no results to report, possibly the collection time was too short? N/A previous_call_memory_usage new_memory_usage N/A during_execution_memory_sampler N/A N/A N/A N/A N/A time N/A memory_profiler N/A keep_watching peak_memory_usage N/A peak_memory_usage -1 N/A keep_watching True N/A n 0 N/A WAIT_BETWEEN_SAMPLES_SECS 0.001 N/A MAX_ITERATIONS N/A 60.0 WAIT_BETWEEN_SAMPLES_SECS N/A True N/A N/A mem_usage N/A N/A N/A memory_profiler memory_usage N/A 0 N/A peak_memory_usage N/A max mem_usage peak_memory_usage N/A N/A N/A time sleep WAIT_BETWEEN_SAMPLES_SECS N/A N/A N/A keep_watching N/A n MAX_ITERATIONS N/A N/A N/A n MAX_ITERATIONS N/A N/A N/A print N/A N/A {} SOMETHING WEIRD HAPPENED AND THIS RAN FOR TOO LONG, THIS THREAD IS KILLING ITSELF format __file__ N/A N/A n 1 N/A pre_run_cell N/A N/A N/A N/A N/A Capture current time before we execute the current command N/A time N/A os N/A perf_proc t1 N/A t1 N/A N/A time time N/A threading N/A ipython_memory_usage_thread N/A N/A threading Thread target during_execution_memory_sampler N/A N/A ipython_memory_usage_thread daemon True N/A N/A N/A ipython_memory_usage_thread start N/A pid N/A N/A os getpid N/A perf_proc N/A N/A perf_process run_capture_perf pid N/A