#include <rtt-config.h>#include <iostream>#include <iomanip>#include <cstdlib>#include <ctime>#include <unistd.h>#include <bitset>#include <boost/lexical_cast.hpp>#include <vector>#include <boost/array.hpp>#include <boost/test/unit_test.hpp>#include <rtt/TaskContext.hpp>#include <rtt/InputPort.hpp>#include <rtt/OutputPort.hpp>#include <rtt/extras/SlaveActivity.hpp>#include <rtt/Activity.hpp>
Go to the source code of this file.
| Classes | |
| struct | Adaptor< T, PortTypes > | 
| struct | Adaptor< T, PortTypes > | 
| struct | ConnPolicy | 
| class | CopyAndAssignmentCounted< Derived > | 
| struct | CopyAndAssignmentCountedDetails | 
| struct | Timer::Data | 
| struct | DataFlowPerformanceTest_< PortType, Enabled > | 
| class | Reader< T, PortType > | 
| class | ReaderWriterTaskContextBase | 
| class | Timer::Section | 
| struct | TestOptions | 
| struct | TestRunner< T, PortType > | 
| struct | TestRunner< T, PortType > | 
| class | Timer | 
| class | Writer< T, PortType > | 
| Namespaces | |
| adaptor | |
| Macros | |
| #define | _stringify(x) _stringify2(x) | 
| #define | _stringify2(x...) #x | 
| #define | NUMBER_OF_CYCLES 10000 | 
| #define | SAMPLE_SIZE 10000 | 
| #define | SAMPLE_TYPE boost::array<double,SAMPLE_SIZE> | 
| Typedefs | |
| typedef DataFlowPerformanceTest_< BufferPortType > | DataFlowPerformanceTest_Buffer | 
| typedef DataFlowPerformanceTest_< DataPortType > | DataFlowPerformanceTest_Data | 
| typedef DataFlowPerformanceTest_< DataPortType, EmptyReads > | DataFlowPerformanceTest_EmptyReads | 
| typedef SAMPLE_TYPE | SampleType | 
| Enumerations | |
| enum | BufferPolicy { UnspecifiedBufferPolicy, PerConnection, PerInputPort, PerOutputPort, Shared } | 
| enum | PortTypes { DataPortType = 1, BufferPortType = 2 } | 
| enum | WriteStatus { WriteSuccess, WriteFailure, NotConnected } | 
| Functions | |
| template<typename T > | |
| static void | GenerateOrderedSample (T &sample, std::size_t size) | 
| template<typename T > | |
| static void | GenerateRandomSample (T &sample, std::size_t size) | 
| static std::bitset< 16 > | adaptor::getCpuAffinity (ThreadInterface *thread) | 
| void | intrusive_ptr_add_ref (CopyAndAssignmentCountedDetails *x) | 
| void | intrusive_ptr_release (CopyAndAssignmentCountedDetails *x) | 
| timespec | operator+ (const timespec &a, const timespec &b) | 
| timespec | operator- (const timespec &a, const timespec &b) | 
| timespec | operator/ (const timespec &a, unsigned long divider) | 
| bool | operator< (const timespec &a, const timespec &b) | 
| std::ostream & | operator<< (std::ostream &os, const ConnPolicy &cp) | 
| std::ostream & | operator<< (std::ostream &stream, const timespec &tp) | 
| std::ostream & | operator<< (std::ostream &os, const TestOptions &options) | 
| template<typename T > | |
| static void | ResizeSample (T &sample, std::size_t size) | 
| template<typename T , std::size_t N> | |
| static void | ResizeSample (CopyAndAssignmentCounted< boost::array< T, N > > &sample, std::size_t size) | 
| const char * | schedulerTypeToString (int scheduler) | 
| static RTT_UNUSED bool | adaptor::setCpuAffinity (ThreadInterface *thread, const std::bitset< 16 > &cpu_affinity) | 
| static bool | adaptor::trigger (TaskContext *tc) | 
| static bool | adaptor::update (TaskContext *tc) | 
| static void | adaptor::yield (TaskContext *tc) | 
| #define _stringify | ( | x | ) | _stringify2(x) | 
Definition at line 438 of file dataflow_performance_test.cpp.
| #define _stringify2 | ( | x... | ) | #x | 
Definition at line 440 of file dataflow_performance_test.cpp.
| #define NUMBER_OF_CYCLES 10000 | 
Definition at line 28 of file dataflow_performance_test.cpp.
| #define SAMPLE_SIZE 10000 | 
Definition at line 25 of file dataflow_performance_test.cpp.
| #define SAMPLE_TYPE boost::array<double,SAMPLE_SIZE> | 
Definition at line 26 of file dataflow_performance_test.cpp.
Definition at line 1527 of file dataflow_performance_test.cpp.
Definition at line 1427 of file dataflow_performance_test.cpp.
| typedef DataFlowPerformanceTest_<DataPortType, EmptyReads> DataFlowPerformanceTest_EmptyReads | 
Definition at line 1633 of file dataflow_performance_test.cpp.
| typedef SAMPLE_TYPE SampleType | 
Definition at line 946 of file dataflow_performance_test.cpp.
| enum BufferPolicy | 
| Enumerator | |
|---|---|
| UnspecifiedBufferPolicy | |
| PerConnection | |
| PerInputPort | |
| PerOutputPort | |
| Shared | |
Definition at line 297 of file dataflow_performance_test.cpp.
| enum PortTypes | 
| Enumerator | |
|---|---|
| DataPortType | |
| BufferPortType | |
Definition at line 30 of file dataflow_performance_test.cpp.
| enum WriteStatus | 
| Enumerator | |
|---|---|
| WriteSuccess | |
| WriteFailure | |
| NotConnected | |
Definition at line 296 of file dataflow_performance_test.cpp.
| 
 | static | 
Definition at line 556 of file dataflow_performance_test.cpp.
| 
 | static | 
Definition at line 545 of file dataflow_performance_test.cpp.
| void intrusive_ptr_add_ref | ( | CopyAndAssignmentCountedDetails * | x | ) | 
Definition at line 455 of file dataflow_performance_test.cpp.
| void intrusive_ptr_release | ( | CopyAndAssignmentCountedDetails * | x | ) | 
Definition at line 456 of file dataflow_performance_test.cpp.
| timespec operator+ | ( | const timespec & | a, | 
| const timespec & | b | ||
| ) | 
Definition at line 579 of file dataflow_performance_test.cpp.
| timespec operator- | ( | const timespec & | a, | 
| const timespec & | b | ||
| ) | 
Definition at line 566 of file dataflow_performance_test.cpp.
| timespec operator/ | ( | const timespec & | a, | 
| unsigned long | divider | ||
| ) | 
Definition at line 592 of file dataflow_performance_test.cpp.
| bool operator< | ( | const timespec & | a, | 
| const timespec & | b | ||
| ) | 
Definition at line 614 of file dataflow_performance_test.cpp.
| std::ostream& operator<< | ( | std::ostream & | os, | 
| const ConnPolicy & | cp | ||
| ) | 
Definition at line 400 of file dataflow_performance_test.cpp.
| std::ostream& operator<< | ( | std::ostream & | stream, | 
| const timespec & | tp | ||
| ) | 
Definition at line 619 of file dataflow_performance_test.cpp.
| std::ostream& operator<< | ( | std::ostream & | os, | 
| const TestOptions & | options | ||
| ) | 
Definition at line 1008 of file dataflow_performance_test.cpp.
| 
 | static | 
Definition at line 533 of file dataflow_performance_test.cpp.
| 
 | static | 
Definition at line 539 of file dataflow_performance_test.cpp.
| const char* schedulerTypeToString | ( | int | scheduler | ) | 
Definition at line 999 of file dataflow_performance_test.cpp.