How To Install threadscope on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 409 words
Introduction
In this tutorial we learn how to install threadscope on Ubuntu.
What is threadscope
threadscope is:
Threadscope is a graphical thread profiler for Haskell programs. It parses and displays the content of .eventlog files emitted by the GHC 6.12.1 and later runtimes, showing a timeline of spark creation, spark-to-thread promotions and garbage collections.
This helps debugging the parallel performance of Haskell programs, making easier to check that work is well balanced across the available processors and spot performance issues relating to garbage collection or poor load balancing.
There are three methods to install threadscope on Ubuntu. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install threadscope Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install threadscope using apt-get by running the following command:
sudo apt-get -y install threadscope
Install threadscope Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install threadscope using apt by running the following command:
sudo apt -y install threadscope
Install threadscope Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install threadscope using aptitude by running the following command:
sudo aptitude -y install threadscope
How To Uninstall threadscope on Ubuntu
To uninstall only the threadscope package we can use the following command:
sudo apt-get remove threadscope
Uninstall threadscope And Its Dependencies
To uninstall threadscope and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove threadscope
Remove threadscope Configurations and Data
To remove threadscope configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge threadscope
Remove threadscope configuration, data, and all of its dependencies
We can use the following command to remove threadscope configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge threadscope
Dependencies
threadscope have the following dependencies:
- libatk1.0-0
- libc6
- libcairo2
- libffi8
- libfontconfig1
- libfreetype6
- libgdk-pixbuf-2.0-0
- libglib2.0-0
- libgmp10
- libgtk2.0-0
- libharfbuzz0b
- libpango-1.0-0
- libpangocairo-1.0-0
- libpangoft2-1.0-0
- zlib1g
References
Summary
In this tutorial we learn how to install threadscope package on Ubuntu using different package management tools: apt, apt-get and aptitude.