cleanup and instrumentation

This commit is contained in:
Erris
2026-01-25 16:12:32 +01:00
parent c8cfed58da
commit 736591415c
61 changed files with 845 additions and 383 deletions

14
open_engine/include/open_engine/entry_point.hpp Normal file → Executable file
View File

@@ -1,18 +1,26 @@
#ifndef ENTRY_POINT_HPP
#define ENTRY_POINT_HPP
#include "application.hpp"
#include "open_engine/instrumentor.hpp"
#include "open_engine/application.hpp"
#include "open_engine/logging.hpp"
extern OpenEngine::Application* OpenEngine::CreateApplication();
int main(int argc, char** argv)
{
OE_PROFILE_BEGIN_SESSION("Startup", "open_engine-startup.json");
OpenEngine::Logger::Init();
auto app = OpenEngine::CreateApplication();
app->Run();
OE_PROFILE_END_SESSION();
OE_PROFILE_BEGIN_SESSION("Runtime", "open_engine-runtime.json");
app->Run();
OE_PROFILE_END_SESSION();
OE_PROFILE_BEGIN_SESSION("Shutdown", "open_engine-shutdown.json");
delete app;
OE_PROFILE_END_SESSION();
}
#endif // ENTRY_POINT_HPP