[libcalamares] Move debugging to more useful spot
- Count the KPMManagers as they are created
This commit is contained in:
parent
8e4a2b3543
commit
2cffe2ec1a
@ -92,8 +92,6 @@ InternalManager::~InternalManager()
|
||||
std::shared_ptr< InternalManager >
|
||||
getInternal()
|
||||
{
|
||||
cDebug() << "KPMCore internal" << s_backend.use_count();
|
||||
|
||||
if ( s_backend.expired() )
|
||||
{
|
||||
auto p = std::make_shared< InternalManager >();
|
||||
@ -106,9 +104,13 @@ getInternal()
|
||||
KPMManager::KPMManager()
|
||||
: m_d( getInternal() )
|
||||
{
|
||||
cDebug() << "KPMManager" << s_backend.use_count() << "created.";
|
||||
}
|
||||
|
||||
KPMManager::~KPMManager() {}
|
||||
KPMManager::~KPMManager()
|
||||
{
|
||||
cDebug() << "KPMManager" << s_backend.use_count() << "being destroyed.";
|
||||
}
|
||||
|
||||
KPMManager::operator bool() const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user