void InformationDialog::setEdgeInfo(yarp::profiler::graph::Edge* edge) { QTreeWidgetItem* item; std::string from = edge->first().property.find("name").asString(); std::string to = edge->second().property.find("name").asString(); QStringList prop; prop.clear(); prop.append("Source"); prop.append(from.c_str()); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("Destination"); prop.append(to.c_str()); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("Carrier"); prop.append(edge->property.find("carrier").asString().c_str()); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); if(edge->property.check("FromPacketPriority")) { // source yarp::os::QosStyle::PacketPriorityLevel level= (yarp::os::QosStyle::PacketPriorityLevel)edge->property.find("FromPacketPriority").asInt32(); prop.clear(); prop.append("Source packet priority"); prop.append(yarp::profiler::NetworkProfiler::packetPrioToString(level).c_str()); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("Source thread priority"); prop.append(QString::number(edge->property.find("FromThreadPriority").asInt32())); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("Source thread policy"); prop.append(QString::number(edge->property.find("FromThreadPolicy").asInt32())); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); // destination level = (yarp::os::QosStyle::PacketPriorityLevel)edge->property.find("ToPacketPriority").asInt32(); prop.clear(); prop.append("Destination packet priority"); prop.append(yarp::profiler::NetworkProfiler::packetPrioToString(level).c_str()); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("Destination thread priority"); prop.append(QString::number(edge->property.find("ToThreadPriority").asInt32())); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("Destination thread policy"); prop.append(QString::number(edge->property.find("FromThreadPolicy").asInt32())); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); } YARP_UNUSED(item); }
void InformationDialog::setPortVertexInfo(yarp::profiler::graph::PortVertex* vertex) { QTreeWidgetItem* item; QStringList prop; prop.clear(); prop.append("Name"); prop.append(vertex->property.find("name").asString().c_str()); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("Type"); prop.append(vertex->property.find("dir").asString().c_str()); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); YARP_UNUSED(item); }
void InformationDialog::setProcessVertexInfo(yarp::profiler::graph::ProcessVertex* vertex) { QTreeWidgetItem* item; QStringList prop; prop.clear(); prop.append("Name"); prop.append(vertex->property.find("name").asString().c_str()); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("Arguments"); prop.append(vertex->property.find("arguments").asString().c_str()); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("Hostname"); prop.append(vertex->property.find("hostname").asString().c_str()); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("Operating system"); prop.append(vertex->property.find("os").asString().c_str()); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("PID"); prop.append(QString::number(vertex->property.find("pid").asInt32())); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("Priority"); prop.append(QString::number(vertex->property.find("priority").asInt32())); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); prop.clear(); prop.append("Policy"); prop.append(QString::number(vertex->property.find("policy").asInt32())); item = new QTreeWidgetItem( ui->treeWidgetProperty, prop); YARP_UNUSED(item); }
bool yarp::os::NullConnectionReader::expectBlock(char *data, size_t len) { YARP_UNUSED(data); YARP_UNUSED(len); return false; }
bool yarp::os::OutputStream::setTypeOfService(int tos) { YARP_UNUSED(tos); return false; }
bool yarp::os::OutputStream::setWriteTimeout(double timeout) { YARP_UNUSED(timeout); return false; }
void yarp::os::NullConnectionWriter::setReference(Portable *obj) { YARP_UNUSED(obj); }
bool yarp::os::MonitorObject::accept(yarp::os::Things& thing) { YARP_UNUSED(thing); return true; }
bool yarp::os::MonitorObject::create(const yarp::os::Property& options) { YARP_UNUSED(options); return true; }
void yarp::os::NullConnectionWriter::appendString(const char *str, int terminate) { YARP_UNUSED(str); YARP_UNUSED(terminate); }
void yarp::os::NullConnectionWriter::appendFloat64(yarp::conf::float64_t data) { YARP_UNUSED(data); }
void yarp::os::NullConnectionWriter::appendInt64(std::int64_t data) { YARP_UNUSED(data); }
void yarp::os::NullConnectionWriter::appendDouble(double data) { YARP_UNUSED(data); }
void yarp::os::NullConnectionWriter::appendInt64(const YARP_INT64& data) { YARP_UNUSED(data); }
void yarp::os::NullConnectionWriter::appendInt(int data) { YARP_UNUSED(data); }
std::string yarp::os::NullConnectionReader::expectText(int terminatingChar) { YARP_UNUSED(terminatingChar); return {}; }
bool yarp::os::NullConnectionReader::pushInt(int x) { YARP_UNUSED(x); return false; }
void yarp::os::NullConnectionWriter::appendExternalBlock(const char *data, size_t len) { YARP_UNUSED(data); YARP_UNUSED(len); }
bool yarp::os::MonitorObject::getparam(yarp::os::Property& params) { YARP_UNUSED(params); return false; }
void yarp::os::NullConnectionWriter::declareSizes(int argc, int *argv) { YARP_UNUSED(argc); YARP_UNUSED(argv); }
yarp::os::Things& yarp::os::MonitorObject::updateReply(yarp::os::Things& thing) { YARP_UNUSED(thing); return thing; }
void yarp::os::NullConnectionWriter::setReplyHandler(PortReader& reader) { YARP_UNUSED(reader); }