Added a debug log to help understand bottlenecks
This commit is contained in:
@@ -90,6 +90,8 @@ namespace Recommendation
|
|||||||
if (itEngine == std::cend(_engines))
|
if (itEngine == std::cend(_engines))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
LMS_LOG(RECOMMENDATION, DEBUG) << "Trying engine '" << engineTypeToString(engineType) << "' to get similar tracks";
|
||||||
|
|
||||||
const IEngine& engine {*itEngine->second};
|
const IEngine& engine {*itEngine->second};
|
||||||
res = engine.findSimilarTracks(trackIds, maxCount);
|
res = engine.findSimilarTracks(trackIds, maxCount);
|
||||||
if (!res.empty())
|
if (!res.empty())
|
||||||
@@ -114,6 +116,8 @@ namespace Recommendation
|
|||||||
if (itEngine == std::cend(_engines))
|
if (itEngine == std::cend(_engines))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
LMS_LOG(RECOMMENDATION, DEBUG) << "Trying engine '" << engineTypeToString(engineType) << "' to get similar releases";
|
||||||
|
|
||||||
const IEngine& engine {*itEngine->second};
|
const IEngine& engine {*itEngine->second};
|
||||||
res = engine.getSimilarReleases(releaseId, maxCount);
|
res = engine.getSimilarReleases(releaseId, maxCount);
|
||||||
if (!res.empty())
|
if (!res.empty())
|
||||||
@@ -140,7 +144,7 @@ namespace Recommendation
|
|||||||
if (itEngine == std::cend(_engines))
|
if (itEngine == std::cend(_engines))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
LMS_LOG(RECOMMENDATION, DEBUG) << "Trying engine '" << engineTypeToString(engineType) << "'";
|
LMS_LOG(RECOMMENDATION, DEBUG) << "Trying engine '" << engineTypeToString(engineType) << "' to get similar artists";
|
||||||
|
|
||||||
const IEngine& engine {*itEngine->second};
|
const IEngine& engine {*itEngine->second};
|
||||||
res = engine.getSimilarArtists(artistId, linkTypes, maxCount);
|
res = engine.getSimilarArtists(artistId, linkTypes, maxCount);
|
||||||
|
|||||||
Reference in New Issue
Block a user