Profiling tasks¶
pytask collects information on tasks when they succeed. To display the data, enter
$ pytask profile
Here is an example
$ pytask profile
───────────────────────── Start pytask session ─────────────────────────
Platform: win32 -- Python 3.12.0, pytask 0.5.3, pluggy 1.3.0
Root: C:\Users\pytask-dev\git\my_project
Collected 18 task.
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Task ┃ Duration (in s) ┃ Size ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ task_apply_bh_to_indicators.py::task_a… │ 3.93 │ 123 MB │
│ task_apply_bh_to_indicators.py::task_a… │ 0.09 │ 13 MB │
│ task_replicate_results_of_bh2007.py::t… │ 0.09 │ 13 MB │
│ task_replicate_results_of_bh2007.py::t… │ 8.99 │ 8 MB │
│ task_merge_indicators.py::task_merge_i… │ 74.44 │ 499 MB │
│ task_prepare_bessen_hunt_2007.py::task… │ 80.15 │ 15 MB │
│ task_prepare_datasets.py::task_copy_fi… │ 0.11 │ 35 MB │
│ task_prepare_datasets.py::task_copy_fi… │ 0.92 │ 35 MB │
│ task_prepare_datasets.py::task_copy_fi… │ 0.11 │ 34 MB │
│ task_prepare_datasets.py::task_copy_fi… │ 0.12 │ 35 MB │
│ task_prepare_datasets.py::task_copy_fi… │ 0.12 │ 35 MB │
│ task_prepare_datasets.py::task_copy_fi… │ 0.44 │ 143 MB │
│ task_prepare_datasets.py::task_copy_fi… │ 0.73 │ 143 MB │
│ task_prepare_datasets.py::task_copy_fi… │ 0.37 │ 114 MB │
│ task_prepare_datasets.py::task_copy_fi… │ 0.62 │ 170 MB │
│ task_visualize_distribution_of_patents… │ 17.3 │ 42 KB │
│ task_compile_document.py::task_compile… │ 7.08 │ 539 KB │
│ task_table_bessen_hunt_2007_and_replic… │ 0.09 │ 784 bytes │
└─────────────────────────────────────────┴─────────────────┴───────────┘
─────────────────────────────────────────────────────────────────────────