perf_roscpp::intra::ThroughputTest Class Reference

List of all members.

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 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::Publisher > pubs_
ros::CallbackQueue queue_
std::vector< boost::shared_ptr
< ReceiveThreadResult > > 
receive_results_
boost::thread_specific_ptr
< ReceiveThreadResult
receive_thread_result_
boost::thread_group receive_threads_
uint32_t receiver_threads_
std::vector< boost::shared_ptr
< SendThreadResult > > 
send_results_
boost::thread_specific_ptr
< SendThreadResult
send_thread_result_
boost::thread_group send_threads_
uint32_t sender_threads_
uint32_t streams_
double test_duration_

Detailed Description

Definition at line 43 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 91 of file intra.cpp.


Member Function Documentation

void perf_roscpp::intra::ThroughputTest::callback ( const ThroughputMessageConstPtr msg  )  [private]

Definition at line 100 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 112 of file intra.cpp.

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

Definition at line 211 of file intra.cpp.

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

Definition at line 139 of file intra.cpp.


Member Data Documentation

Definition at line 83 of file intra.cpp.

Definition at line 53 of file intra.cpp.

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

Definition at line 76 of file intra.cpp.

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

Definition at line 75 of file intra.cpp.

Definition at line 63 of file intra.cpp.

Definition at line 62 of file intra.cpp.

Definition at line 78 of file intra.cpp.

Definition at line 85 of file intra.cpp.

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

Definition at line 73 of file intra.cpp.

Definition at line 72 of file intra.cpp.

Definition at line 79 of file intra.cpp.

Definition at line 84 of file intra.cpp.

Definition at line 82 of file intra.cpp.

Definition at line 81 of file intra.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs


perf_roscpp
Author(s): Josh Faust (jfaust@willowgarage.com)
autogenerated on Fri Jan 11 10:07:21 2013