mirror of
https://github.com/davrot/pytutorial.git
synced 2025-04-18 21:26:41 +02:00
Create README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
6fe3aa5e92
commit
9c5d90af40
1 changed files with 61 additions and 0 deletions
61
helper/austin/README.md
Normal file
61
helper/austin/README.md
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
# Austin -- Time and memory profiling
|
||||||
|
{:.no_toc}
|
||||||
|
|
||||||
|
<nav markdown="1" class="toc-class">
|
||||||
|
* TOC
|
||||||
|
{:toc}
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
## Top
|
||||||
|
|
||||||
|
We want to see where your Python program requires the most processing time and memory. For this we will use a time- and memory profiler called Austin.
|
||||||
|
|
||||||
|
Questions to [David Rotermund](mailto:davrot@uni-bremen.de)
|
||||||
|
|
||||||
|
## Installing Austin
|
||||||
|
|
||||||
|
Obviously, first we need to get [Austin](https://github.com/p403n1x87/austin). On the Austin website, there a several methods described how to install it.
|
||||||
|
|
||||||
|
### Linux as user
|
||||||
|
|
||||||
|
Compiling
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git clone --depth=1 https://github.com/P403n1x87/austin.git
|
||||||
|
cd austin
|
||||||
|
autoreconf --install
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
|
Adding it to the Python3 bin directory, e.g.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cp src/austin ~/P3.11/bin/
|
||||||
|
```
|
||||||
|
|
||||||
|
### Windows
|
||||||
|
|
||||||
|
Go [here](https://github.com/P403n1x87/austin/releases/latest) and download the latest Windows64 msi installer. And don't let Windows intimidate you:
|
||||||
|
|
||||||
|
|
||||||
|
## Installing [Austin TUI](https://github.com/P403n1x87/austin-tui)
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pip install austin-tui
|
||||||
|
```
|
||||||
|
|
||||||
|
Under Windows you might need (not tested yet):
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pip install windows-curses
|
||||||
|
```
|
||||||
|
|
||||||
|
## Installing VS Code Austin extension
|
||||||
|
|
||||||
|
You need to install this extension:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
```python
|
||||||
|
```
|
Loading…
Add table
Reference in a new issue