How to Install and Uninstall python3-line-profiler Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 20,2024

1. Install "python3-line-profiler" package

Please follow the guidelines below to install python3-line-profiler on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install python3-line-profiler

2. Uninstall "python3-line-profiler" package

Please follow the guidance below to uninstall python3-line-profiler on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove python3-line-profiler $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-line-profiler package on Ubuntu 21.10 (Impish Indri)

Package: python3-line-profiler
Architecture: amd64
Version: 2.1-3build1
Priority: optional
Section: universe/python
Source: python-line-profiler
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Science Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 160
Depends: python3 (<< 3.10), python3 (>= 3.9~), python3-ipython, python3:any, libc6 (>= 2.4)
Filename: pool/universe/p/python-line-profiler/python3-line-profiler_2.1-3build1_amd64.deb
Size: 45384
MD5sum: 19f1c319cf52a72dce0eae4bf4fcd055
SHA1: e1fb1e02667b96d6056ab2af6c103154cebe2922
SHA256: 869fd99b07e8f1cbffa5982949dba3fa3a0b71db823d581fc6fac81aec7ba8a0
SHA512: 9077b04dfcaa6bee0bd377e13ed665af304fbc091d68dcf5ef93e938d736ec01a490064da2321026eef649e797c5b426abfbf36f8063604c8e413b9c8299a07b
Homepage: https://github.com/pyutils/line_profiler
Description-en: line-by-line profiling for Python
LineProfiler can be given functions to profile, and it will time the execution
of each individual line inside those functions. In a typical workflow, one
only cares about line timings of a few functions because wading through the
results of timing every single line of code would be overwhelming. However,
LineProfiler does need to be explicitly told what functions to profile.
.
If you are using IPython, there is an implementation of an %lprun magic
command which will let you specify functions to profile and a statement to
execute.
Description-md5: 2b723206dbc0fb0981d1dd99e6e85fec