6 #ifndef APPLICATIONIO_HPP_INCLUDE
7 #define APPLICATIONIO_HPP_INCLUDE
18 #include "geopm_hint.h"
19 #include "geopm_time.h"
33 virtual std::vector<int>
connect(
void) = 0;
47 const std::string &profile_name,
52 std::vector<int>
connect(
void)
override;
56 std::set<int> get_profile_pids(
void);
57 static constexpr
size_t M_SHMEM_REGION_SIZE = 2*1024*1024;
60 std::shared_ptr<ServiceProxy> m_service_proxy;
61 const std::string m_profile_name;
63 std::set<int> m_profile_pids;
Definition: ApplicationIO.hpp:27
virtual bool do_shutdown(void)=0
Returns true if the application has indicated it is shutting down.
virtual std::set< std::string > region_name_set(void) const =0
Returns the set of region names recorded by the application.
virtual std::vector< int > connect(void)=0
Connect to the application via shared memory.
virtual ~ApplicationIO()=default
Definition: ApplicationIO.hpp:43
std::vector< int > connect(void) override
Connect to the application via shared memory.
Definition: ApplicationIO.cpp:53
virtual ~ApplicationIOImp()
Definition: ApplicationIO.cpp:48
bool do_shutdown(void) override
Returns true if the application has indicated it is shutting down.
Definition: ApplicationIO.cpp:111
std::set< std::string > region_name_set(void) const override
Returns the set of region names recorded by the application.
Definition: ApplicationIO.cpp:139
ApplicationIOImp()
Definition: ApplicationIO.cpp:23
Definition: Accumulator.cpp:12