2018-02-10 04:17:37 +00:00
|
|
|
// Copyright 2018 yuzu emulator team
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
2018-04-20 01:41:44 +00:00
|
|
|
namespace Service::APM {
|
2018-02-10 04:17:37 +00:00
|
|
|
|
|
|
|
class APM final : public ServiceFramework<APM> {
|
|
|
|
public:
|
2018-07-19 16:05:48 +00:00
|
|
|
explicit APM(std::shared_ptr<Module> apm, const char* name);
|
2018-02-10 04:17:37 +00:00
|
|
|
~APM() = default;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void OpenSession(Kernel::HLERequestContext& ctx);
|
|
|
|
|
|
|
|
std::shared_ptr<Module> apm;
|
|
|
|
};
|
|
|
|
|
2018-08-07 14:05:24 +00:00
|
|
|
class APM_Sys final : public ServiceFramework<APM_Sys> {
|
|
|
|
public:
|
|
|
|
explicit APM_Sys();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void GetPerformanceEvent(Kernel::HLERequestContext& ctx);
|
|
|
|
};
|
|
|
|
|
2018-04-20 01:41:44 +00:00
|
|
|
} // namespace Service::APM
|