Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Profiler2.cpp File Reference
#include "precompiled.h"
#include "Profiler2.h"
#include "lib/code_generation.h"
#include "lib/os_path.h"
#include "lib/path.h"
#include "network/HttpServer.h"
#include "ps/CLogger.h"
#include "ps/CStr.h"
#include "ps/ConfigDB.h"
#include "ps/Future.h"
#include "ps/Profiler2GPU.h"
#include "ps/Pyrogenesis.h"
#include "ps/TaskManager.h"
#include <algorithm>
#include <cstdio>
#include <fmt/format.h>
#include <fstream>
#include <functional>
#include <httplib.h>
#include <iomanip>
#include <map>
#include <set>
#include <sstream>
#include <tuple>
#include <unordered_map>
#include <utility>
#include <variant>
Include dependency graph for Profiler2.cpp:

Classes

struct  BufferVisitor_Dump
 Visitor class that dumps events as JSON. More...
 

Functions

void rewriteBuffer (std::uint8_t *buffer, std::uint32_t &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
 

Function Documentation

◆ rewriteBuffer()

void rewriteBuffer ( std::uint8_t *  buffer,
std::uint32_t &  bufferSize 
)

◆ RunBufferVisitor()

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.

Variable Documentation

◆ g_Profiler2

CProfiler2 g_Profiler2