Simple C++ project to work with:
- cmake
- googletest
- valgrind
Project is part of Week-6 Assignment for ENPM808X.
- 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
- 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
Check if valgrind is installed on your machine.
valgrind --version
If not installed, install using the following command:
sudo apt install valgrind
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