Pyrogenesis  trunk
Classes | Functions | Variables
Profiler2.cpp File Reference
#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>
Include dependency graph for Profiler2.cpp:

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
 

Function Documentation

◆ MgCallback()

static void* MgCallback ( mg_event  event,
struct mg_connection conn,
const struct mg_request_info request_info 
)
static

Mongoose callback.

Run in an arbitrary thread (possibly concurrently with other requests).

◆ rewriteBuffer()

void rewriteBuffer ( u8 buffer,
u32 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