Adaptyst
A comprehensive and architecture-agnostic performance analysis tool
Loading...
Searching...
No Matches
adaptyst::Entity Class Reference

#include <system.hpp>

Inheritance diagram for adaptyst::Entity:
adaptyst::Identifiable

Public Types

enum  AccessMode { LOCAL , REMOTE , CUSTOM , CUSTOM_REMOTE }

Public Member Functions

 Entity (std::string id, AccessMode access_mode, unsigned int processing_threads, fs::path local_config_path, fs::path tmp_dir, bool no_inject, unsigned int buf_size)
void add_node (std::shared_ptr< Node > &node)
void add_connection (std::string id, std::string departure_node, std::string arrival_node)
std::shared_ptr< Node > & get_node (std::string id)
void set_directing_node (std::string node)
std::string get_directing_node ()
profile_infoget_profile_info ()
void set_profile_info (profile_info &info)
void init ()
void process (bool save_src_code_paths)
void close ()
void set_entity_dir (fs::path &entity_dir)
void profile_notify ()
int profile_wait ()
const char * get_cpu_mask ()
fs::path & get_tmp_dir ()
fs::path & get_local_config_dir ()
std::vector< std::shared_ptr< Node > > get_all_nodes ()
std::vector< std::string > get_log_types ()
std::string get_type ()
void set_ir (std::shared_ptr< IR > ir_obj)
std::unordered_set< fs::path > & get_src_code_paths ()
bool is_workflow_running ()
bool is_workflow_ever_run ()
unsigned long long get_workflow_start_time (bool &err)
unsigned long long get_workflow_end_time (bool &err)
Public Member Functions inherited from adaptyst::Identifiable
std::string & get_name ()
void set_parent (Identifiable *identifiable)
std::string get_parent_name ()
fs::path & get_path (fs::path start)

Additional Inherited Members

Protected Member Functions inherited from adaptyst::Identifiable
 Identifiable (std::string name)
void throw_error (std::string msg)

Member Enumeration Documentation

◆ AccessMode

Enumerator
LOCAL 
REMOTE 
CUSTOM 
CUSTOM_REMOTE 

Constructor & Destructor Documentation

◆ Entity()

adaptyst::Entity::Entity ( std::string id,
AccessMode access_mode,
unsigned int processing_threads,
fs::path local_config_path,
fs::path tmp_dir,
bool no_inject,
unsigned int buf_size )

Member Function Documentation

◆ add_connection()

void adaptyst::Entity::add_connection ( std::string id,
std::string departure_node,
std::string arrival_node )

◆ add_node()

void adaptyst::Entity::add_node ( std::shared_ptr< Node > & node)

◆ close()

void adaptyst::Entity::close ( )

◆ get_all_nodes()

std::vector< std::shared_ptr< Node > > adaptyst::Entity::get_all_nodes ( )

◆ get_cpu_mask()

const char * adaptyst::Entity::get_cpu_mask ( )

◆ get_directing_node()

std::string adaptyst::Entity::get_directing_node ( )

◆ get_local_config_dir()

fs::path & adaptyst::Entity::get_local_config_dir ( )

◆ get_log_types()

std::vector< std::string > adaptyst::Entity::get_log_types ( )
virtual

◆ get_node()

std::shared_ptr< Node > & adaptyst::Entity::get_node ( std::string id)

◆ get_profile_info()

profile_info & adaptyst::Entity::get_profile_info ( )

◆ get_src_code_paths()

std::unordered_set< fs::path > & adaptyst::Entity::get_src_code_paths ( )

◆ get_tmp_dir()

fs::path & adaptyst::Entity::get_tmp_dir ( )

◆ get_type()

std::string adaptyst::Entity::get_type ( )
virtual

◆ get_workflow_end_time()

unsigned long long adaptyst::Entity::get_workflow_end_time ( bool & err)

◆ get_workflow_start_time()

unsigned long long adaptyst::Entity::get_workflow_start_time ( bool & err)

◆ init()

void adaptyst::Entity::init ( )

◆ is_workflow_ever_run()

bool adaptyst::Entity::is_workflow_ever_run ( )

◆ is_workflow_running()

bool adaptyst::Entity::is_workflow_running ( )

◆ process()

void adaptyst::Entity::process ( bool save_src_code_paths)

◆ profile_notify()

void adaptyst::Entity::profile_notify ( )

◆ profile_wait()

int adaptyst::Entity::profile_wait ( )

◆ set_directing_node()

void adaptyst::Entity::set_directing_node ( std::string node)

◆ set_entity_dir()

void adaptyst::Entity::set_entity_dir ( fs::path & entity_dir)

◆ set_ir()

void adaptyst::Entity::set_ir ( std::shared_ptr< IR > ir_obj)

◆ set_profile_info()

void adaptyst::Entity::set_profile_info ( profile_info & info)

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