|
HDK
|
#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 VdfNetwork * | GetNetwork () 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 () |
Definition at line 23 of file executionStatsProcessor.h.
A per-thread id.
Definition at line 29 of file executionStatsProcessor.h.
|
virtual |
Destructor.
|
protected |
Protected constructor.
|
inlineprotectedvirtual |
Virtual method that runs after processing. Should be used to aggregate results.
Definition at line 83 of file executionStatsProcessor.h.
|
inlineprotectedvirtual |
Virtual method that runs before processing. Should be used to set up results.
Definition at line 78 of file executionStatsProcessor.h.
|
protectedpure virtual |
Virtual method for processing a single event given a thread id and an event. Called by _ProcessEvents.
Implemented in VdfTestUtils::ExecutionStatsProcessor.
|
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.