HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VdfExecutionStatsProcessor Class Referenceabstract

#include <executionStatsProcessor.h>

+ Inheritance diagram for VdfExecutionStatsProcessor:

Public Types

typedef std::thread::id ThreadId
 

Public Member Functions

virtual VDF_API ~VdfExecutionStatsProcessor ()
 
VDF_API void Process (const VdfExecutionStats *stats)
 
VDF_API const VdfNetworkGetNetwork () const
 

Protected Member Functions

VDF_API VdfExecutionStatsProcessor ()
 
virtual void _ProcessEvent (ThreadId threadId, const VdfExecutionStats::Event &event)=0
 
virtual void _ProcessSubStat (const VdfExecutionStats *subStat)=0
 
virtual void _PreProcess ()
 
virtual void _PostProcess ()
 

Detailed Description

Definition at line 23 of file executionStatsProcessor.h.

Member Typedef Documentation

A per-thread id.

Definition at line 29 of file executionStatsProcessor.h.

Constructor & Destructor Documentation

virtual VDF_API VdfExecutionStatsProcessor::~VdfExecutionStatsProcessor ( )
virtual

Destructor.

VDF_API VdfExecutionStatsProcessor::VdfExecutionStatsProcessor ( )
protected

Protected constructor.

Member Function Documentation

virtual void VdfExecutionStatsProcessor::_PostProcess ( )
inlineprotectedvirtual

Virtual method that runs after processing. Should be used to aggregate results.

Definition at line 83 of file executionStatsProcessor.h.

virtual void VdfExecutionStatsProcessor::_PreProcess ( )
inlineprotectedvirtual

Virtual method that runs before processing. Should be used to set up results.

Definition at line 78 of file executionStatsProcessor.h.

virtual void VdfExecutionStatsProcessor::_ProcessEvent ( ThreadId  threadId,
const VdfExecutionStats::Event event 
)
protectedpure virtual

Virtual method for processing a single event given a thread id and an event. Called by _ProcessEvents.

Implemented in VdfTestUtils::ExecutionStatsProcessor.

virtual void VdfExecutionStatsProcessor::_ProcessSubStat ( const VdfExecutionStats subStat)
protectedpure virtual

Virtual method for processing a single sub stat given a sub stat. Called by _ProcessSubStats. NOTE : No child class hold on to the subStats pointer. The lifetime of substats is managed inside MfExecInterpreter, so there is no guarantee that the subStats pointer will be valid except during scope of this function.

Implemented in VdfTestUtils::ExecutionStatsProcessor.

VDF_API const VdfNetwork* VdfExecutionStatsProcessor::GetNetwork ( ) const

Returns the network pointer. Should only be called after Process has been called.

XXX : In the future, we should remove direct network access and limit network access via an API in the processor that only allows client classes to access node pointers if they are valid / current.

VDF_API void VdfExecutionStatsProcessor::Process ( const VdfExecutionStats stats)

Processes the given execution stats to fill the processor with processed stats.


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