How To Install threadscope on Ubuntu 18.04

In this tutorial we learn how to install threadscope on Ubuntu 18.04. threadscope is graphical thread profiler for Haskell programs

Introduction

In this tutorial we learn how to install threadscope on Ubuntu 18.04.

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 18.04. 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 18.04

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 18.04, 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 18.04 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

References

Summary

In this tutorial we learn how to install threadscope package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.