{ "cells": [ { "cell_type": "markdown", "id": "a9336af1", "metadata": {}, "source": [ "# Basic Profile of TARDIS #" ] }, { "cell_type": "markdown", "id": "e825ec8b", "metadata": {}, "source": [ "A profile is a set of statistics that describes how often and for how long various parts of the program execute (cProfile). A majority of TARDIS can be profiled, however, some code is Numba code, which cannot be profiled. This is because Numba compiles these functions directly to machine code; the python interpreter doesn’t see these functions and therefore it doesn’t read them.\n", "\n", "This notebook uses snakeviz, which is a graphical viewer for the output of cProfile, to visualize the results and make them interactive. In order to use SnakeViz, you must first download it via pip. The first cell loads SnakeViz and gets the notebook ready to run TARDIS." ] }, { "cell_type": "code", "execution_count": 1, "id": "88cdeafd", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "c685f4df288947f7bc11b26978c355bb", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Iterations: 0/? [00:00