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
* Profiling file can now be capped to a maximum size to prevent from
running out of memory in constrained systems (as described in #13).
* When capping is set, two rotating files are used instead of ones and
only the most recent events are stored.
Fix issue #13
uprofile::start("uprofile.log", 500000 /* max file size in bytes */);
57
+
```
58
+
59
+
It will generate two rotating files with the most recent events. With the above example, both files will be `uprofile_0.log` and `uprofile_1.log`.
60
+
53
61
### GPU monitoring
54
62
55
63
The library also supports GPU metrics monitoring like usage and memory. Since GPU monitoring is specific to each vendor, an interface `IGPUMonitor` is available to abstract each vendor monitor system.
@@ -86,8 +94,8 @@ Here is the list of GPUs supported by `cppuprofile`
86
94
The build process is based on CMake. Minimum version is 2.8.
87
95
88
96
```commandline
89
-
$ cmake --configure . -B ../build-cppuprofile
90
-
$ cmake --build ../build-cppuprofile
97
+
$ cmake -Bbuild .
98
+
$ cmake --build build
91
99
```
92
100
93
101
### Shared/dynamic library
@@ -106,7 +114,7 @@ If you want to disable profiling in Release mode or if you want to only enable p
0 commit comments