Closed findream closed 2 years ago
Hi @findream, Windows has a fixed limit of trace sessions that can be created. To remove old, unused trace sessions and make space for new ones, launch Performance Monitor as an administrator and navigate to Data Collector Sets
> Event Trace Sessions
. Right-click to stop a session if it's running, and right-click again to delete it.
To prevent future stale trace sessions from being created, supply a name when instantiating the krabs::trace
instead of using the default constructor (which creates a random GUID-named trace session each time):
krabs::user_trace trace(L"My trace session");
instead of
krabs::user_trace trace;
hello: I use "Microsoft-Windows-Kernel-Process" to monitor process creation, but throw "no_trace_sessions_remaining" exception。