class Core::Portable::ProfilingData

Overview

#include <coreprofiling.h>

class ProfilingData: public Core::IProfilingData
{
public:
    // structs

    struct Counter;

    // methods

    virtual int getNumberOfCounters() const;
    virtual int addCounter(CStringPtr label);
    virtual void setCounterLabel(int counter, CStringPtr label);
    virtual CStringPtr getCounterLabel(int counter) const;
    virtual bool setField(int counter, Key key, uint32 value);
    virtual bool getField(uint32& value, int counter, Key key) const;
};

Inherited Members

public:
    // enums

    enum Key;

    // methods

    virtual int getNumberOfCounters() const = 0;
    virtual int addCounter(CStringPtr label) = 0;
    virtual void setCounterLabel(int counter, CStringPtr label) = 0;
    virtual CStringPtr getCounterLabel(int counter) const = 0;
    virtual bool setField(int counter, Key key, uint32 value) = 0;
    virtual bool getField(uint32& value, int counter, Key key) const = 0;

Detailed Documentation

Methods

virtual int getNumberOfCounters() const

Get number of profiling counters.

virtual int addCounter(CStringPtr label)

Add profiling counter with label.

virtual void setCounterLabel(int counter, CStringPtr label)

Change profiling counter label.

virtual CStringPtr getCounterLabel(int counter) const

Get profiling counter label.

virtual bool setField(int counter, Key key, uint32 value)

Set value for counter, see @Key enum (CPU usage, microsecond intervals).

virtual bool getField(uint32& value, int counter, Key key) const

Get value from counter, see @Key enum (CPU usage, microsecond intervals).