![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"#include "Profiler2.h"#include "lib/allocators/shared_ptr.h"#include "lib/os_path.h"#include "ps/CLogger.h"#include "ps/ConfigDB.h"#include "ps/CStr.h"#include "ps/Profiler2GPU.h"#include "ps/Pyrogenesis.h"#include "third_party/mongoose/mongoose.h"#include <fmt/format.h>#include <fstream>#include <iomanip>#include <map>#include <set>#include <tuple>#include <unordered_map>
Classes | |
| struct | BufferVisitor_Dump |
| Visitor class that dumps events as JSON. More... | |
Functions | |
| static void * | MgCallback (mg_event event, struct mg_connection *conn, const struct mg_request_info *request_info) |
| Mongoose callback. More... | |
| void | rewriteBuffer (u8 *buffer, u32 &bufferSize) |
| template<typename V > | |
| void | RunBufferVisitor (const std::string &buffer, V &visitor) |
| Given a buffer and a visitor class (with functions OnEvent, OnEnter, OnLeave, OnAttribute), calls the visitor for every item in the buffer. More... | |
Variables | |
| CProfiler2 | g_Profiler2 |
|
static |
Mongoose callback.
Run in an arbitrary thread (possibly concurrently with other requests).
| void RunBufferVisitor | ( | const std::string & | buffer, |
| V & | visitor | ||
| ) |
Given a buffer and a visitor class (with functions OnEvent, OnEnter, OnLeave, OnAttribute), calls the visitor for every item in the buffer.
| CProfiler2 g_Profiler2 |