How To Install eclipse-cdt-profiling-framework on Ubuntu 18.04

In this tutorial we learn how to install eclipse-cdt-profiling-framework on Ubuntu 18.04. eclipse-cdt-profiling-framework is framework for profiling tools for Eclipse CDT

Introduction

In this tutorial we learn how to install eclipse-cdt-profiling-framework on Ubuntu 18.04.

What is eclipse-cdt-profiling-framework

eclipse-cdt-profiling-framework is:

This package provides a common infrastructure that allows one to integrate various profiling tools into Eclipse IDE. It supports 3 categories of tools:

  • Timing - measure the amount of time taken in functions and methods
  • Memory - profiles heap/stack/cache usage for an application
  • Coverage - measures how much of the code gets exercised in a run

In addition to this package, a plugin that integrates particular profiling tool (e.g. Valgrind or perf) is required in order to run performance analysis.

There are three methods to install eclipse-cdt-profiling-framework 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 eclipse-cdt-profiling-framework Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install eclipse-cdt-profiling-framework using apt-get by running the following command:

sudo apt-get -y install eclipse-cdt-profiling-framework

Install eclipse-cdt-profiling-framework Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install eclipse-cdt-profiling-framework using apt by running the following command:

sudo apt -y install eclipse-cdt-profiling-framework

Install eclipse-cdt-profiling-framework 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 eclipse-cdt-profiling-framework using aptitude by running the following command:

sudo aptitude -y install eclipse-cdt-profiling-framework

How To Uninstall eclipse-cdt-profiling-framework on Ubuntu 18.04

To uninstall only the eclipse-cdt-profiling-framework package we can use the following command:

sudo apt-get remove eclipse-cdt-profiling-framework

Uninstall eclipse-cdt-profiling-framework And Its Dependencies

To uninstall eclipse-cdt-profiling-framework and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove eclipse-cdt-profiling-framework

Remove eclipse-cdt-profiling-framework Configurations and Data

To remove eclipse-cdt-profiling-framework configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge eclipse-cdt-profiling-framework

Remove eclipse-cdt-profiling-framework configuration, data, and all of its dependencies

We can use the following command to remove eclipse-cdt-profiling-framework configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge eclipse-cdt-profiling-framework

References

Summary

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