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

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< ThreadResultthread_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.

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

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

uint32_t perf_roscpp::intra::LatencyTest::count_per_stream_
private

Definition at line 362 of file intra.cpp.

uint32_t perf_roscpp::intra::LatencyTest::message_size_
private

Definition at line 364 of file intra.cpp.

boost::mutex perf_roscpp::intra::LatencyTest::mutex_
private

Definition at line 347 of file intra.cpp.

ros::CallbackQueue perf_roscpp::intra::LatencyTest::receive_queue_
private

Definition at line 358 of file intra.cpp.

uint32_t perf_roscpp::intra::LatencyTest::receiver_threads_
private

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.

uint32_t perf_roscpp::intra::LatencyTest::sender_threads_
private

Definition at line 365 of file intra.cpp.

uint32_t perf_roscpp::intra::LatencyTest::streams_
private

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, Dirk Thomas
autogenerated on Mon Nov 2 2020 03:52:46