geopm 3.2.1.dev535+ga96c120fc
GEOPM - Global Extensible Open Power Manager
Loading...
Searching...
No Matches
record.hpp File Reference
#include <cstdint>
#include <string>
#include "geopm_time.h"
Include dependency graph for record.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  geopm::record_s
 Record of an application event. More...
struct  geopm::short_region_s

Namespaces

namespace  geopm

Enumerations

enum  geopm::event_e {
  geopm::EVENT_REGION_ENTRY = 0 , geopm::EVENT_REGION_EXIT = 1 , geopm::EVENT_EPOCH_COUNT = 2 , geopm::EVENT_SHORT_REGION = 3 ,
  geopm::EVENT_AFFINITY = 9 , geopm::EVENT_START_PROFILE = 10 , geopm::EVENT_STOP_PROFILE = 11 , geopm::EVENT_OVERHEAD = 12
}
 Enumeration of event types that can be stored in a record. More...

Functions

std::string geopm::event_name (int event_type)
 Format an event_e type as a string.
int geopm::event_type (const std::string &event_name)
 Convert a human-readable event type string to an event_e.
std::string geopm::hint_name (uint64_t hint)
 Format a string to represent a hint enum from the geopm_region_hint_e.
uint64_t geopm::hint_type (const std::string &hint_name)
 Parse a string representing the hint name.