YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::profiler::NetworkProfilerBasic Class Reference

#include <yarp/profiler/NetworkProfilerBasic.h>

+ Inheritance diagram for yarp::profiler::NetworkProfilerBasic:

Classes

struct  ConnectedPortInfo
 
struct  ConnectionDetails
 
struct  MachineInfo
 
struct  PortDetails
 
struct  PortInfo
 
struct  ProcessInfo
 

Public Types

typedef std::vector< PortInfo > ports_name_set
 
typedef ports_name_set::iterator ports_name_iterator
 
typedef std::vector< PortDetails > ports_detail_set
 
typedef ports_detail_set::iterator ports_detail_iterator
 
typedef std::vector< ConnectionDetails > connections_set
 
typedef std::vector< std::string > machines_list
 
typedef std::vector< std::string > processes_list
 

Static Public Member Functions

static bool getPortDetails (const std::string &portName, PortDetails &info, double timeout=2.0)
 Get the details (connections, owner process and machine) of a port.
 
static bool getMachinesList (const ports_detail_set &ports, machines_list &l)
 
static bool getProcessesList (const ports_detail_set &ports, processes_list &l)
 
static bool getPortsList (ports_name_set &ports, bool complete=false)
 
static bool getPortsDetailedList (ports_detail_set &ports, bool complete=false, double timeout=2.0)
 
static bool getConnectionsList (connections_set &connections)
 
static bool getPortInfo (const std::string &name, const ports_name_set &ports, PortInfo &p)
 
static void filterConnectionListByName (const connections_set &in, connections_set &filtered_out, std::string src_name="*", std::string dst_name="*")
 
static void filterConnectionListByIp (const connections_set &in, connections_set &filtered_out, std::string src_name="*", std::string dst_name="*")
 
static void filterConnectionListByPortNumber (const connections_set &in, connections_set &filtered_out, std::string src_name="*", std::string dst_name="*")
 
static void filterPortsListByIp (const ports_detail_set &in, ports_detail_set &filtered_out, std::string ip="*")
 
static void filterPortsListByProcess (const ports_detail_set &in, ports_detail_set &filtered_out, std::string fullprocess="*")
 
static bool yarpClean (float timeout=0.1)
 

Detailed Description

Definition at line 21 of file NetworkProfilerBasic.h.

Member Typedef Documentation

◆ connections_set

◆ machines_list

typedef std::vector<std::string> yarp::profiler::NetworkProfilerBasic::machines_list

Definition at line 94 of file NetworkProfilerBasic.h.

◆ ports_detail_iterator

Definition at line 90 of file NetworkProfilerBasic.h.

◆ ports_detail_set

◆ ports_name_iterator

Definition at line 87 of file NetworkProfilerBasic.h.

◆ ports_name_set

◆ processes_list

typedef std::vector<std::string> yarp::profiler::NetworkProfilerBasic::processes_list

Definition at line 95 of file NetworkProfilerBasic.h.

Member Function Documentation

◆ filterConnectionListByIp()

void NetworkProfilerBasic::filterConnectionListByIp ( const connections_set &  in,
connections_set &  filtered_out,
std::string  src_name = "*",
std::string  dst_name = "*" 
)
static

Definition at line 117 of file NetworkProfilerBasic.cpp.

◆ filterConnectionListByName()

void NetworkProfilerBasic::filterConnectionListByName ( const connections_set &  in,
connections_set &  filtered_out,
std::string  src_name = "*",
std::string  dst_name = "*" 
)
static

Definition at line 99 of file NetworkProfilerBasic.cpp.

◆ filterConnectionListByPortNumber()

void NetworkProfilerBasic::filterConnectionListByPortNumber ( const connections_set &  in,
connections_set &  filtered_out,
std::string  src_name = "*",
std::string  dst_name = "*" 
)
static

Definition at line 135 of file NetworkProfilerBasic.cpp.

◆ filterPortsListByIp()

void NetworkProfilerBasic::filterPortsListByIp ( const ports_detail_set &  in,
ports_detail_set &  filtered_out,
std::string  ip = "*" 
)
static

Definition at line 75 of file NetworkProfilerBasic.cpp.

◆ filterPortsListByProcess()

void NetworkProfilerBasic::filterPortsListByProcess ( const ports_detail_set &  in,
ports_detail_set &  filtered_out,
std::string  fullprocess = "*" 
)
static

Definition at line 87 of file NetworkProfilerBasic.cpp.

◆ getConnectionsList()

bool NetworkProfilerBasic::getConnectionsList ( connections_set &  connections)
static

Definition at line 170 of file NetworkProfilerBasic.cpp.

◆ getMachinesList()

bool NetworkProfilerBasic::getMachinesList ( const ports_detail_set &  ports,
machines_list &  l 
)
static

Definition at line 25 of file NetworkProfilerBasic.cpp.

◆ getPortDetails()

bool NetworkProfilerBasic::getPortDetails ( const std::string &  portName,
PortDetails &  info,
double  timeout = 2.0 
)
static

Get the details (connections, owner process and machine) of a port.

Parameters
portNamethe name of the port
infothe details of the port
timeouttimeout (in seconds) of the connection used to query the port
Returns
true on success

Definition at line 273 of file NetworkProfilerBasic.cpp.

◆ getPortInfo()

bool NetworkProfilerBasic::getPortInfo ( const std::string &  name,
const ports_name_set &  ports,
PortInfo &  p 
)
static

Definition at line 153 of file NetworkProfilerBasic.cpp.

◆ getPortsDetailedList()

bool NetworkProfilerBasic::getPortsDetailedList ( ports_detail_set &  ports,
bool  complete = false,
double  timeout = 2.0 
)
static

Definition at line 56 of file NetworkProfilerBasic.cpp.

◆ getPortsList()

bool NetworkProfilerBasic::getPortsList ( ports_name_set &  ports,
bool  complete = false 
)
static

Definition at line 222 of file NetworkProfilerBasic.cpp.

◆ getProcessesList()

bool NetworkProfilerBasic::getProcessesList ( const ports_detail_set &  ports,
processes_list &  l 
)
static

Definition at line 40 of file NetworkProfilerBasic.cpp.

◆ yarpClean()

bool NetworkProfilerBasic::yarpClean ( float  timeout = 0.1)
static

Definition at line 348 of file NetworkProfilerBasic.cpp.


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