HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VdfTestUtils::ExecutionStatsProcessor Class Reference

Simple processor that processor ExecutionStats into a vector of vector of events and a vector of substats that mirrors the internal structure of ExecutionStats. More...

#include <testUtils.h>

+ Inheritance diagram for VdfTestUtils::ExecutionStatsProcessor:

Public Types

typedef std::unordered_map
< ExecutionStatsProcessor::ThreadId,
std::vector
< VdfExecutionStats::Event > > 
ThreadToEvents
 
- Public Types inherited from VdfExecutionStatsProcessor
typedef std::thread::id ThreadId
 

Public Member Functions

 ExecutionStatsProcessor ()
 
VDF_API ~ExecutionStatsProcessor ()
 
- Public Member Functions inherited from VdfExecutionStatsProcessor
virtual VDF_API ~VdfExecutionStatsProcessor ()
 
VDF_API void Process (const VdfExecutionStats *stats)
 
VDF_API const VdfNetworkGetNetwork () const
 

Public Attributes

ThreadToEvents events
 
std::vector
< ExecutionStatsProcessor * > 
subStats
 

Protected Member Functions

VDF_API void _ProcessEvent (VdfExecutionStatsProcessor::ThreadId threadId, const VdfExecutionStats::Event &event) override
 
VDF_API void _ProcessSubStat (const VdfExecutionStats *stats) override
 
- Protected Member Functions inherited from VdfExecutionStatsProcessor
VDF_API VdfExecutionStatsProcessor ()
 
virtual void _PreProcess ()
 
virtual void _PostProcess ()
 

Detailed Description

Simple processor that processor ExecutionStats into a vector of vector of events and a vector of substats that mirrors the internal structure of ExecutionStats.

Definition at line 555 of file testUtils.h.

Member Typedef Documentation

Constructor & Destructor Documentation

VdfTestUtils::ExecutionStatsProcessor::ExecutionStatsProcessor ( )
inline

Constructor.

Definition at line 560 of file testUtils.h.

VDF_API VdfTestUtils::ExecutionStatsProcessor::~ExecutionStatsProcessor ( )

Destructor.

Member Function Documentation

VDF_API void VdfTestUtils::ExecutionStatsProcessor::_ProcessEvent ( VdfExecutionStatsProcessor::ThreadId  threadId,
const VdfExecutionStats::Event event 
)
overrideprotectedvirtual

Virtual method implementing process event for processing.

Implements VdfExecutionStatsProcessor.

VDF_API void VdfTestUtils::ExecutionStatsProcessor::_ProcessSubStat ( const VdfExecutionStats stats)
overrideprotectedvirtual

Virtual method implementing process sub stat for processing.

Implements VdfExecutionStatsProcessor.

Member Data Documentation

ThreadToEvents VdfTestUtils::ExecutionStatsProcessor::events

Definition at line 573 of file testUtils.h.

std::vector<ExecutionStatsProcessor*> VdfTestUtils::ExecutionStatsProcessor::subStats

Definition at line 574 of file testUtils.h.


The documentation for this class was generated from the following file: