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
I noticed that during my function that creates krabs::providers and registers them, I get a high CPU usage which seemed odd.
I traced the problem to the following line of code in provider.hpp:
template <typename T>
provider<T>::provider(const std::wstring &providerName)
....
hr = allProviders->GetTraceDataProviders(NULL); // This line is causing high cpu usage and takes 2-3 seconds to return. tested in Windows 10 and Windows 7.
My question is, is there anyway to improve this? Because right now, for every provider that I want to create and register, it takes 2-3 second and high cpu usage because of this, so imagine when I try to register 10 providers..
I wanted to use the GUID version of the provider constructor, but the problem is I don't see it validating the GUID, because i might use providers that exist in some systems but don't exist in others, so I need to check if the GUID provider exist or not to begin with.
The text was updated successfully, but these errors were encountered:
I noticed that during my function that creates
krabs::provider
s and registers them, I get a high CPU usage which seemed odd.I traced the problem to the following line of code in
provider.hpp
:My question is, is there anyway to improve this? Because right now, for every provider that I want to create and register, it takes 2-3 second and high cpu usage because of this, so imagine when I try to register 10 providers..
I wanted to use the GUID version of the provider constructor, but the problem is I don't see it validating the GUID, because i might use providers that exist in some systems but don't exist in others, so I need to check if the GUID provider exist or not to begin with.
The text was updated successfully, but these errors were encountered: