struct Core::IProfiler

Overview

Interface implemented by profiler. More…

#include <coreprofiler.h>

struct IProfiler
{
    // methods

    virtual void setup (int numberOfCounters) = 0;
    virtual void reset () = 0;
    virtual void beginInterval (int counter) = 0;
    virtual void endInterval (int counter) = 0;
    virtual void getProfilingData (IProfilingData& data) const = 0;
};

Detailed Documentation

Interface implemented by profiler.

Methods

virtual void setup (int numberOfCounters) = 0

Set up given number of counters.

virtual void reset () = 0

Reset profiling state.

virtual void beginInterval (int counter) = 0

Begin time interval for given counter.

virtual void endInterval (int counter) = 0

End time interval for given counter.

virtual void getProfilingData (IProfilingData& data) const = 0

Get snapshot of profiling data.