mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
easylogging++: faster access to logging
Turns out getting the global shared_ptr hits the profile, and passing it around still keeps it at close to ~1% CPU, which is too much for mostly silent logging. Leak the object instead, which is even safer for late logging.
This commit is contained in:
parent
7cc27b367e
commit
721aacd88e
3 changed files with 19 additions and 2 deletions
|
@ -17,3 +17,12 @@
|
|||
fun:maybe_unlock_and_signal_one<boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex> >
|
||||
...
|
||||
}
|
||||
|
||||
{
|
||||
we leak the logger, for performance reasons in on-the-fly init
|
||||
Memcheck:Leak
|
||||
match-leak-kinds: definite
|
||||
fun:_Znwm
|
||||
fun:_ZN2el4base7Storage7getELPPEv
|
||||
...
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue