18 #ifndef __H__OCULAR_CORE_PERFORMANCE_PROFILER__H__
19 #define __H__OCULAR_CORE_PERFORMANCE_PROFILER__H__
21 #include "ProfilerNode.hpp"
22 #include "ProfilerScope.hpp"
32 #ifdef OCULAR_PERFORM_PROFILING
33 #define OCULAR_PROFILE() Ocular::Core::ProfilerScope OCULAR_INTERNAL_PROFILE_SCOPE(BOOST_CURRENT_FUNCTION);
34 #define OCULAR_PROFILE_START(x) OcularEngine.Profiler()->beginBlock(BOOST_CURRENT_FUNCTION, x);
35 #define OCULAR_PROFILE_STOP() OcularEngine.Profiler()->endBlock();
37 #define OCULAR_PROFILE()
38 #define OCULAR_PROFILE_START(x) do { } while(false);
39 #define OCULAR_PROFILE_STOP()
143 void beginBlock(std::string
const& name, std::string
const& segment);
163 void printToTXT(std::string
const& path)
const;
177 void createLogBuffer(std::stringstream& stream,
bool prettify)
const;
178 void createLogForNode(
ProfilerNode* node, std::stringstream& stream,
bool prettify)
const;
180 std::string
prettifyName(std::string
const& name)
const;
void printToTXT(std::string const &path) const
Definition: Profiler.cpp:149
void endBlock()
Definition: Profiler.cpp:104
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
void printToConsole(bool prettify=true) const
Definition: Profiler.cpp:141
void printToHTML(std::string const &path) const
Definition: Profiler.cpp:164
std::string prettifyName(std::string const &name) const
Definition: Profiler.cpp:231
void beginBlock(std::string const &name, std::string const &segment)
Definition: Profiler.cpp:52
Definition: Profiler.hpp:128
Definition: ProfilerNode.hpp:39