|
Aegis2D
Modular C++26 2D game engine for networked games
|
Timers around the parts of a frame, and the breakdown of the last frame. More...
#include <aegis2d/core/export.hpp>#include <chrono>#include <cstddef>#include <cstdint>#include <filesystem>#include <iosfwd>#include <span>#include <string>#include <string_view>#include <vector>Go to the source code of this file.
Classes | |
| struct | aegis2d::core::ProfileEntry |
| Time a named part of a frame took, as Profiler::last_frame() gives it. More... | |
| struct | aegis2d::core::TraceEvent |
| A scope timed while tracing (Profiler::start_trace()), for write_chrome_trace(). More... | |
| struct | aegis2d::core::TraceThread |
| The trace of one thread, as write_chrome_trace() writes it. More... | |
| class | aegis2d::core::ProfileScope |
| Times a scope while it lives: from Profiler::scope() to its destruction. More... | |
| class | aegis2d::core::Profiler |
| Timers around the parts of a frame (its phases, each system of a ecs::Scheduler...), and the breakdown of the last frame for the metrics overlay. More... | |
Namespaces | |
| namespace | aegis2d |
| Root namespace of the engine. | |
| namespace | aegis2d::core |
| Logging, time, main loop, events and configuration shared by client and server. | |
Functions | |
| void | aegis2d::core::write_chrome_trace (std::ostream &out, std::span< const TraceThread > threads, std::string_view process="aegis2d") |
Writes traces in the Chrome trace format, which Perfetto (ui.perfetto.dev) and chrome://tracing open. | |
| void | aegis2d::core::save_chrome_trace (const std::filesystem::path &file, std::span< const TraceThread > threads, std::string_view process="aegis2d") |
| Writes traces to a file in the Chrome trace format (write_chrome_trace()). | |
| std::vector< std::string > | aegis2d::core::profile_lines (const Profiler &profiler, std::size_t most=12) |
| The breakdown of the last frame as lines of the metrics overlay. | |
Timers around the parts of a frame, and the breakdown of the last frame.