8000 GitHub - urastogi885/cpp-valgrind: Simple project to get started with valgrind
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

urastogi885/cpp-valgrind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Valgrind


Overview

Simple C++ project to work with:

  • cmake
  • googletest
  • valgrind

Project is part of Week-6 Assignment for ENPM808X.

Standard install via command-line

  • Go to the folder where you want to clone this repository.
  • Right-click on empty space and select Open in Terminal.
  • Run the commands stated below:
git clone --recursive https://github.com/dpiet/cpp-boilerplate
cd <path to r
63D5
epository>
mkdir build
cd build
cmake ..
make
./app/shell-app

Location of output files

  • All the output files are located in the results sub-directory.
  • The output files have been listed below:
    • Valgrind error files: valgrind_output_before_fixes.txt valgrind_output_after_fixes.txt
    • KCacheGrind file: KCacheGrind_profiler_output.png
    • CppLint output file: cpplint_output.txt

Working with Valgrind

Installation

Check if valgrind is installed on your machine.

valgrind --version

If not installed, install using the following command:

sudo apt install valgrind

Run

Complete the Standard install via command-line section before moving ahead

Go to the project directory, open the build sub-directory in Terminal, and run:

valgrind ./app/shell-app

To check leaks in the project, run:

valgrind --leak-check=full ./app/shell-app

To check the function and memory profiler output, run:

valgrind --tool=callgrind ./app/shell-app

About

Simple project to get started with valgrind

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0