You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ CTRACK is a powerful tool that can be seamlessly integrated into both developmen
7
7
## Features
8
8
9
9
- Single header file
10
-
- No dependencies
10
+
- No dependencies (optional tbb for non msvc to use paralell result calculation)
11
11
- Easy to use (just 1 line per function you want to track)
12
12
- Minimal overhead (can record tens of millions events per second)
13
13
- Optimized for multi-threaded environments
@@ -168,6 +168,9 @@ CTRACK is a header-only library, which means you can start using it by simply in
168
168
169
169
This method is straightforward and doesn't require any additional setup or build process.
170
170
171
+
Note: If you are using a compiler which needs TBB for C++ standard parallel algorithms, you need to link to -ltbb. You can always fall back to sequential result calculation by setting
172
+
CTRACK_DISABLE_EXECUTION_POLICY. The recording will be unchanged, but the printing/calculating of the stats will be a bit slower.
173
+
171
174
### 2. CMake Package
172
175
173
176
For projects using CMake, CTRACK can be installed and used as a CMake package. This method provides better integration with your build system and makes it easier to manage dependencies.
@@ -191,6 +194,11 @@ To use CTRACK as a CMake package:
You can always fall back to sequential result calculation by setting
200
+
CTRACK_DISABLE_EXECUTION_POLICY. The recording will be unchanged, but the printing/calculating of the stats will be a bit slower.
201
+
194
202
For more detailed examples of how to use CTRACK with CMake, please refer to the `examples` directory in the CTRACK repository.
195
203
196
204
Choose the installation method that best fits your project's needs and structure. Both methods provide full access to CTRACK's features and capabilities.
0 commit comments