Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
perf_roscpp::intra::ThroughputTest Class Reference

Classes

struct  ReceiveThreadResult
 
struct  SendThreadResult
 

Public Member Functions

ThroughputResult run ()
 
 ThroughputTest (double test_duration, uint32_t streams, uint32_t message_size, uint32_t sender_threads, uint32_t receiver_threads)
 

Private Member Functions

void callback (const test_roscpp::ThroughputMessageConstPtr &msg)
 
void receiveThread (boost::barrier *all_started, boost::barrier *all_start, ros::WallTime *end_time)
 
void sendThread (boost::barrier *all_connected)
 

Private Attributes

uint32_t message_size_
 
boost::mutex mutex_
 
std::vector< ros::Publisherpubs_
 
ros::CallbackQueue queue_
 
std::vector< boost::shared_ptr< ReceiveThreadResult > > receive_results_
 
boost::thread_specific_ptr< ReceiveThreadResultreceive_thread_result_
 
boost::thread_group receive_threads_
 
uint32_t receiver_threads_
 
std::vector< boost::shared_ptr< SendThreadResult > > send_results_
 
boost::thread_specific_ptr< SendThreadResultsend_thread_result_
 
boost::thread_group send_threads_
 
uint32_t sender_threads_
 
uint32_t streams_
 
double test_duration_
 

Detailed Description

Definition at line 51 of file intra.cpp.

Constructor & Destructor Documentation

perf_roscpp::intra::ThroughputTest::ThroughputTest ( double  test_duration,
uint32_t  streams,
uint32_t  message_size,
uint32_t  sender_threads,
uint32_t  receiver_threads 
)

Definition at line 99 of file intra.cpp.

Member Function Documentation

void perf_roscpp::intra::ThroughputTest::callback ( const test_roscpp::ThroughputMessageConstPtr &  msg)
private

Definition at line 108 of file intra.cpp.

void perf_roscpp::intra::ThroughputTest::receiveThread ( boost::barrier *  all_started,
boost::barrier *  all_start,
ros::WallTime end_time 
)
private

Definition at line 120 of file intra.cpp.

ThroughputResult perf_roscpp::intra::ThroughputTest::run ( )

Definition at line 219 of file intra.cpp.

void perf_roscpp::intra::ThroughputTest::sendThread ( boost::barrier *  all_connected)
private

Definition at line 147 of file intra.cpp.

Member Data Documentation

uint32_t perf_roscpp::intra::ThroughputTest::message_size_
private

Definition at line 94 of file intra.cpp.

boost::mutex perf_roscpp::intra::ThroughputTest::mutex_
private

Definition at line 64 of file intra.cpp.

std::vector<ros::Publisher> perf_roscpp::intra::ThroughputTest::pubs_
private

Definition at line 87 of file intra.cpp.

ros::CallbackQueue perf_roscpp::intra::ThroughputTest::queue_
private

Definition at line 86 of file intra.cpp.

std::vector<boost::shared_ptr<ReceiveThreadResult> > perf_roscpp::intra::ThroughputTest::receive_results_
private

Definition at line 74 of file intra.cpp.

boost::thread_specific_ptr<ReceiveThreadResult> perf_roscpp::intra::ThroughputTest::receive_thread_result_
private

Definition at line 73 of file intra.cpp.

boost::thread_group perf_roscpp::intra::ThroughputTest::receive_threads_
private

Definition at line 89 of file intra.cpp.

uint32_t perf_roscpp::intra::ThroughputTest::receiver_threads_
private

Definition at line 96 of file intra.cpp.

std::vector<boost::shared_ptr<SendThreadResult> > perf_roscpp::intra::ThroughputTest::send_results_
private

Definition at line 84 of file intra.cpp.

boost::thread_specific_ptr<SendThreadResult> perf_roscpp::intra::ThroughputTest::send_thread_result_
private

Definition at line 83 of file intra.cpp.

boost::thread_group perf_roscpp::intra::ThroughputTest::send_threads_
private

Definition at line 90 of file intra.cpp.

uint32_t perf_roscpp::intra::ThroughputTest::sender_threads_
private

Definition at line 95 of file intra.cpp.

uint32_t perf_roscpp::intra::ThroughputTest::streams_
private

Definition at line 93 of file intra.cpp.

double perf_roscpp::intra::ThroughputTest::test_duration_
private

Definition at line 92 of file intra.cpp.


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


test_roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
autogenerated on Mon Nov 2 2020 03:52:46