GPUOcelot
Public Types | Public Member Functions | Public Attributes

trace::TraceGenerator Class Reference

#include <TraceGenerator.h>

Inheritance diagram for trace::TraceGenerator:
Inheritance graph
[legend]

List of all members.

Public Types

enum  TraceFormat {
  ParallelismTraceFormat, BranchTraceFormat, MemoryTraceFormat, SharedComputationTraceFormat,
  InstructionTraceFormat, KernelDimensionsFormat, MachineAttributesFormat, WatchTraceFormat,
  WarpSynchronousTraceFormat, PerformanceBoundTraceFormat, ConvergenceTraceFormat, BasicBlockCountFormat,
  InvalidTraceFormat
}
 

The different possible types of trace formats.

More...

Public Member Functions

 TraceGenerator ()
virtual ~TraceGenerator ()
virtual void initialize (const executive::ExecutableKernel &kernel)
 called when a traced kernel is launched to retrieve some parameters from the kernel
virtual void event (const TraceEvent &event)
 Called whenever an event takes place.
virtual void postEvent (const TraceEvent &event)
 called when an event is committed
virtual void finish ()
 Called when a kernel is finished. There will be no more events for this kernel.

Public Attributes

std::string database
 The name of the database file to store references to kernel traces.

Detailed Description

Base class for generating traces


Member Enumeration Documentation

The different possible types of trace formats.

Enumerator:
ParallelismTraceFormat 
BranchTraceFormat 
MemoryTraceFormat 
SharedComputationTraceFormat 
InstructionTraceFormat 
KernelDimensionsFormat 
MachineAttributesFormat 
WatchTraceFormat 
WarpSynchronousTraceFormat 
PerformanceBoundTraceFormat 
ConvergenceTraceFormat 
BasicBlockCountFormat 
InvalidTraceFormat 

Constructor & Destructor Documentation

trace::TraceGenerator::TraceGenerator ( )
trace::TraceGenerator::~TraceGenerator ( ) [virtual]

Member Function Documentation

void trace::TraceGenerator::event ( const TraceEvent event) [virtual]

Called whenever an event takes place.

Note, the const reference 'event' is only valid until event() returns

Reimplemented in trace::InteractiveDebugger, trace::MemoryChecker, and trace::MemoryRaceDetector.

void trace::TraceGenerator::finish ( ) [virtual]

Called when a kernel is finished. There will be no more events for this kernel.

Reimplemented in trace::InteractiveDebugger, trace::MemoryChecker, and trace::MemoryRaceDetector.

void trace::TraceGenerator::initialize ( const executive::ExecutableKernel kernel) [virtual]

called when a traced kernel is launched to retrieve some parameters from the kernel

Reimplemented in trace::InteractiveDebugger, trace::MemoryChecker, and trace::MemoryRaceDetector.

void trace::TraceGenerator::postEvent ( const TraceEvent event) [virtual]

called when an event is committed

Reimplemented in trace::MemoryChecker, and trace::MemoryRaceDetector.


Member Data Documentation

The name of the database file to store references to kernel traces.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines