Classes | Public Member Functions | Private Member Functions | Private Attributes
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 test_roscpp::LatencyMessageConstPtr &msg, ros::Publisher &pub)
void receiveThread ()
void sendCallback (const test_roscpp::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 333 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 369 of file intra.cpp.


Member Function Documentation

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

Definition at line 378 of file intra.cpp.

Definition at line 476 of file intra.cpp.

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

Definition at line 387 of file intra.cpp.

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

Definition at line 409 of file intra.cpp.


Member Data Documentation

Definition at line 362 of file intra.cpp.

Definition at line 364 of file intra.cpp.

Definition at line 347 of file intra.cpp.

Definition at line 358 of file intra.cpp.

Definition at line 366 of file intra.cpp.

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

Definition at line 356 of file intra.cpp.

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

Definition at line 360 of file intra.cpp.

Definition at line 365 of file intra.cpp.

Definition at line 363 of file intra.cpp.

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

Definition at line 355 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
autogenerated on Thu Jun 6 2019 21:10:43