geopm 3.2.1.dev535+ga96c120fc
GEOPM - Global Extensible Open Power Manager
Loading...
Searching...
No Matches
geopm::DefaultProfile Class Reference
Inheritance diagram for geopm::DefaultProfile:
Collaboration diagram for geopm::DefaultProfile:

Public Member Functions

 DefaultProfile ()
virtual ~DefaultProfile ()=default
Public Member Functions inherited from geopm::ProfileImp
 ProfileImp ()
 ProfileImp constructor.
 ProfileImp (const std::string &prof_name, const std::string &report, int num_cpu, std::set< int > cpu_set, std::shared_ptr< ApplicationStatus > app_status, std::shared_ptr< ApplicationRecordLog > app_record_log, bool do_profile, std::shared_ptr< ServiceProxy > service_proxy, std::shared_ptr< Scheduler > scheduler, int registered_pid)
 ProfileImp testable constructor.
 ProfileImp (const ProfileImp &other)=delete
ProfileImp operator= (const ProfileImp &other)=delete
virtual ~ProfileImp ()
 ProfileImp destructor, virtual.
uint64_t region (const std::string &region_name, long hint) override
 Register a region of code to be profiled.
void enter (uint64_t region_id) override
 Mark a region entry point.
void exit (uint64_t region_id) override
 Mark a region exit point.
void epoch (void) override
 Signal pass through outer loop.
void shutdown (void) override
void thread_init (uint32_t num_work_unit) override
 Update the total work for all CPUs. This method should be called by one thread in the same parallel region with the total work units expected to be completed by the entire group.
void thread_post (int cpu) override
 Mark one unit of work completed by the thread on this CPU.
std::vector< std::string > region_names (void) override
void reset_cpu_set (void) override
void overhead (double overhead_sec) override
void connect (void) override
Public Member Functions inherited from geopm::Profile
 Profile ()=default
virtual ~Profile ()=default

Additional Inherited Members

Static Public Member Functions inherited from geopm::Profile
static Profile & default_profile (void)
static int get_cpu (void)
 Returns the Linux logical CPU index that the calling thread is executing on, and caches the result to be used in future calls. This method should be used by callers to report the correct CPU to thread_init() and thread_post().
Protected Attributes inherited from geopm::ProfileImp
bool m_is_enabled

Constructor & Destructor Documentation

◆ DefaultProfile()

geopm::DefaultProfile::DefaultProfile ( )

◆ ~DefaultProfile()

virtual geopm::DefaultProfile::~DefaultProfile ( )
virtualdefault

The documentation for this class was generated from the following file: