Debian Codegraph @

utils/health/README.md

raw symbols SCIP
1 # Intro
2
3 This directory contains tools, which can be used for checking the health of the project, like build/run time analyzers, lints, etc.
4
5 # Usage
6
7 Unless it's stated differently, these scripts should be called from a given source directory, where you want the checks to be performed, for instance:
8
9 `og@ghetto:~/dev/monero$ utils/health/clang-build-time-analyzer-run.sh`
10
11 ## ClangBuildAnalyzer
12
13 `utils/health/clang-build-time-analyzer-run.sh`
14 The CBA helps in finding culprints of slow compilation.
15 On the first run, the script will complain about the missing ClangBuildAnalyzer binary and will point you to another script, which is able to clone and build the required binary.
16
17 ## clang-tidy
18
19 `utils/health/clang-tidy-run-cc.sh`
20 `utils/health/clang-tidy-run-cpp.sh`
21 Performs Lint checks on the source code and stores the result in the build directory. More information on the [home page](https://clang.llvm.org/extra/clang-tidy/).
22
23 ## include-what-you-use
24
25 `utils/health/clang-include-what-you-use-run.sh`
26 Analyses the header file hierarchy and delivers hints on how to reduce their complexity. More information on the [home page](https://include-what-you-use.org/).
27
28
29 ## Valgrind checks
30
31 `utils/health/valgrind-tests.sh`
32 This script is able to run valgrind's callgrind, cachegrind and memcheck for a given set of executables.
33 It expects ONE PARAMETER, which points to a file with paths to executables and their arguments, written line by line. For example:
34
35 ```
36 ls -l -h
37 build/tests/unit_tests/unit_tests
38 ```
39
40 The `*.out` results can be interpreted with the `kcachegrind` tool.
41 The memcheck output is just a readable text file with a summary at the end.
42
43 # Footer
44
45 Responsible: mj-xmr
46