Added some detailed profiling info into subsonic responses handlers
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "database/User.hpp"
|
||||
#include "services/feedback/IFeedbackService.hpp"
|
||||
#include "services/scrobbling/IScrobblingService.hpp"
|
||||
#include "utils/IProfiler.hpp"
|
||||
#include "utils/Service.hpp"
|
||||
#include "utils/String.hpp"
|
||||
|
||||
@@ -40,6 +41,8 @@ namespace API::Subsonic
|
||||
|
||||
Response::Node createAlbumNode(RequestContext& context, const Release::pointer& release, const User::pointer& user, bool id3)
|
||||
{
|
||||
LMS_SCOPED_PROFILE_DETAILED("Subsonic", "CreateAlbum");
|
||||
|
||||
Response::Node albumNode;
|
||||
|
||||
if (id3) {
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "database/TrackArtistLink.hpp"
|
||||
#include "database/User.hpp"
|
||||
#include "services/feedback/IFeedbackService.hpp"
|
||||
#include "utils/IProfiler.hpp"
|
||||
#include "utils/Service.hpp"
|
||||
#include "utils/String.hpp"
|
||||
|
||||
@@ -75,6 +76,8 @@ namespace API::Subsonic
|
||||
|
||||
Response::Node createArtistNode(RequestContext& context, const Artist::pointer& artist, const User::pointer& user, bool id3)
|
||||
{
|
||||
LMS_SCOPED_PROFILE_DETAILED("Subsonic", "CreateArtist");
|
||||
|
||||
Response::Node artistNode{ createArtistNode(artist) };
|
||||
|
||||
artistNode.setAttribute("id", idToString(artist->getId()));
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "database/User.hpp"
|
||||
#include "services/feedback/IFeedbackService.hpp"
|
||||
#include "services/scrobbling/IScrobblingService.hpp"
|
||||
#include "utils/IProfiler.hpp"
|
||||
#include "utils/Service.hpp"
|
||||
#include "utils/String.hpp"
|
||||
#include "responses/Artist.hpp"
|
||||
@@ -96,6 +97,8 @@ namespace API::Subsonic
|
||||
|
||||
Response::Node createSongNode(RequestContext& context, const Track::pointer& track, const User::pointer& user)
|
||||
{
|
||||
LMS_SCOPED_PROFILE_DETAILED("Subsonic", "CreateSong");
|
||||
|
||||
Response::Node trackResponse;
|
||||
|
||||
trackResponse.setAttribute("id", idToString(track->getId()));
|
||||
|
||||
Reference in New Issue
Block a user