2019-12-12 17:32:41 +01:00
|
|
|
// This file is part of the "Irrlicht Engine".
|
|
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
// Written by Michael Zeilfelder
|
|
|
|
|
2021-08-27 17:55:04 +02:00
|
|
|
#ifndef IRR_C_PROFILER_H_INCLUDED
|
|
|
|
#define IRR_C_PROFILER_H_INCLUDED
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
#include "IrrCompileConfig.h"
|
|
|
|
#include "IProfiler.h"
|
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
class CProfiler : public IProfiler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
CProfiler();
|
|
|
|
virtual ~CProfiler();
|
|
|
|
|
|
|
|
//! Write all profile-data into a string
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void printAll(core::stringw &result, bool includeOverview,bool suppressUncalled) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Write the profile data of one group into a string
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void printGroup(core::stringw &result, u32 groupIndex, bool suppressUncalled) const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
core::stringw makeTitleString() const;
|
|
|
|
core::stringw getAsString(const SProfileData& data) const;
|
|
|
|
};
|
|
|
|
} // namespace irr
|
|
|
|
|
2021-08-27 17:55:04 +02:00
|
|
|
#endif // IRR_C_PROFILER_H_INCLUDED
|