Skip to content

Commit

Permalink
Wip apple firebase performance
Browse files Browse the repository at this point in the history
  • Loading branch information
irov committed Dec 12, 2023
1 parent 0c0438b commit 1772c18
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
#pragma once

#include "Interface/ServiceInterface.h"
#include "Interface/ServantInterface.h"

#import <Foundation/Foundation.h>

namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
class AppleFirebasePerformanceMonitoringTraceInterface
: public ServantInterface
{
public:
virtual void start() = 0;
virtual void stop() = 0;
};
//////////////////////////////////////////////////////////////////////////
typedef IntrusivePtr<AppleFirebasePerformanceMonitoringTraceInterface> AppleFirebasePerformanceMonitoringTraceInterfacePtr;
//////////////////////////////////////////////////////////////////////////
class AppleFirebasePerformanceMonitoringServiceInterface
: public ServiceInterface
{
SERVICE_DECLARE( "AppleFirebasePerformanceMonitoringService" )

public:
virtual AppleFirebasePerformanceMonitoringTraceInterfacePtr createTrace( const ConstString & _name ) = 0;
};
//////////////////////////////////////////////////////////////////////////
}
//////////////////////////////////////////////////////////////////////////
#define APPLE_FIREBASE_PERFORMANCEMONITORING_SERVICE()\
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "AppleFirebasePerformanceMonitoringServiceInterface.h"
#include "AppleFirebasePerformanceMonitoringInterface.h"

#include "Kernel/ServiceBase.h"

Expand All @@ -16,5 +16,8 @@ namespace Mengine
protected:
bool _initializeService() override;
void _finalizeService() override;

public:
AppleFirebasePerformanceMonitoringTraceInterfacePtr createTrace( const ConstString & _name ) override;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,11 @@
//Empty
}
//////////////////////////////////////////////////////////////////////////
AppleFirebasePerformanceMonitoringTraceInterfacePtr AppleFirebasePerformanceMonitoringService::createTrace( const ConstString & _name )
{
//FIRTrace *trace = [[FIRPerformance sharedInstance] traceWithName:name];

return AppleFirebasePerformanceMonitoringTraceInterfacePtr::none();
}
//////////////////////////////////////////////////////////////////////////
}

0 comments on commit 1772c18

Please sign in to comment.