6 #ifndef YARP_PROFILER_NETWORK_PROFILER_H
7 #define YARP_PROFILER_NETWORK_PROFILER_H
68 std::ostringstream str;
69 str<<
"port name: "<<
name<<std::endl;
70 str<<
"outputs:"<<std::endl;
71 std::vector<ConnectionInfo>::const_iterator itr;
73 str <<
" + " << (*itr).name <<
" (" << (*itr).carrier <<
")" << std::endl;
75 str<<
"inputs:"<<std::endl;
77 str <<
" + " << (*itr).name <<
" (" << (*itr).carrier <<
")" << std::endl;
79 str<<
"owner:"<<std::endl;
85 str<<
" + os: "<<
owner.
os<<std::endl;
86 str<<
" + pid: "<<
owner.
pid<<std::endl;
128 static bool yarpClean(
float timeout=0.1);
131 progCallback = callback;
145 static ProgressCallback* progCallback;
A simple collection of objects that can be described and transmitted in a portable way.
A class for storing options and configuration information.
PacketPriorityLevel
The PacketPriorityLevel defines the packets quality of service (priority) levels.
virtual void onProgress(unsigned int percentage)
virtual ~ProgressCallback()
static bool getPortmonitorParams(std::string portName, yarp::os::Bottle ¶m)
static std::string packetPrioToString(yarp::os::QosStyle::PacketPriorityLevel level)
static bool attachPortmonitorPlugin(std::string portName, yarp::os::Property pluginProp)
static bool yarpNameList(ports_name_set &ports, bool complete=false)
yarpNameList
static bool updateConnectionQosStatus(yarp::profiler::graph::Graph &graph)
static bool yarpClean(float timeout=0.1)
NetworkProfiler::yarpClean.
static bool setPortmonitorParams(std::string portName, yarp::os::Property ¶m)
static yarp::os::QosStyle::PacketPriorityLevel packetStringToPrio(std::string level)
static bool creatNetworkGraph(ports_detail_set details, yarp::profiler::graph::Graph &graph)
creatNetworkGraph
static bool getPortDetails(const std::string &portName, PortDetails &info)
getPortDetails
static bool creatSimpleModuleGraph(yarp::profiler::graph::Graph &graph, yarp::profiler::graph::Graph &subgraph)
std::vector< yarp::os::Bottle > ports_name_set
ports_detail_set::iterator ports_detail_iterator
static bool detachPortmonitorPlugin(std::string portName)
ports_name_set::iterator ports_name_iterator
static void setProgressCallback(ProgressCallback *callback)
std::vector< PortDetails > ports_detail_set
The yarp::profiler::graph::Graph class.
The main, catch-all namespace for YARP.
std::string toString() const
std::vector< ConnectionInfo > inputs
std::vector< ConnectionInfo > outputs