perf_roscpp::intra::LatencyTest Class Reference

List of all members.

Classes

struct  ThreadResult

Public Member Functions

 LatencyTest (uint32_t count_per_stream, uint32_t streams, uint32_t message_size, uint32_t sender_threads, uint32_t receiver_threads)
LatencyResult run ()

Private Member Functions

void receiveCallback (const LatencyMessageConstPtr &msg, ros::Publisher &pub)
void receiveThread ()
void sendCallback (const LatencyMessageConstPtr &msg, ros::Publisher &pub, uint32_t thread_index)
void sendThread (boost::barrier *b, uint32_t i)

Private Attributes

uint32_t count_per_stream_
uint32_t message_size_
boost::mutex mutex_
ros::CallbackQueue receive_queue_
uint32_t receiver_threads_
std::vector< boost::shared_ptr
< ThreadResult > > 
results_
boost::thread_group send_threads_
uint32_t sender_threads_
uint32_t streams_
boost::thread_specific_ptr
< ThreadResult
thread_result_

Detailed Description

Definition at line 325 of file intra.cpp.


Constructor & Destructor Documentation

perf_roscpp::intra::LatencyTest::LatencyTest ( uint32_t  count_per_stream,
uint32_t  streams,
uint32_t  message_size,
uint32_t  sender_threads,
uint32_t  receiver_threads 
)

Definition at line 361 of file intra.cpp.


Member Function Documentation

void perf_roscpp::intra::LatencyTest::receiveCallback ( const LatencyMessageConstPtr msg,
ros::Publisher &  pub 
) [private]

Definition at line 370 of file intra.cpp.

void perf_roscpp::intra::LatencyTest::receiveThread (  )  [private]
LatencyResult perf_roscpp::intra::LatencyTest::run (  ) 

Definition at line 468 of file intra.cpp.

void perf_roscpp::intra::LatencyTest::sendCallback ( const LatencyMessageConstPtr msg,
ros::Publisher &  pub,
uint32_t  thread_index 
) [private]

Definition at line 379 of file intra.cpp.

void perf_roscpp::intra::LatencyTest::sendThread ( boost::barrier *  b,
uint32_t  i 
) [private]

Definition at line 401 of file intra.cpp.


Member Data Documentation

Definition at line 354 of file intra.cpp.

Definition at line 356 of file intra.cpp.

Definition at line 339 of file intra.cpp.

Definition at line 350 of file intra.cpp.

Definition at line 358 of file intra.cpp.

std::vector<boost::shared_ptr<ThreadResult> > perf_roscpp::intra::LatencyTest::results_ [private]

Definition at line 348 of file intra.cpp.

boost::thread_group perf_roscpp::intra::LatencyTest::send_threads_ [private]

Definition at line 352 of file intra.cpp.

Definition at line 357 of file intra.cpp.

Definition at line 355 of file intra.cpp.

boost::thread_specific_ptr<ThreadResult> perf_roscpp::intra::LatencyTest::thread_result_ [private]

Definition at line 347 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