Changeset View
Changeset View
Standalone View
Standalone View
source/ps/Profiler2.h
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
* The initial setup of g_Profiler2 must happen in the game's main thread. | * The initial setup of g_Profiler2 must happen in the game's main thread. | ||||
* RegisterCurrentThread and the Record functions may be called from any thread. | * RegisterCurrentThread and the Record functions may be called from any thread. | ||||
* The HTTP server runs its own threads, which may call the ConstructJSON functions. | * The HTTP server runs its own threads, which may call the ConstructJSON functions. | ||||
*/ | */ | ||||
#ifndef INCLUDED_PROFILER2 | #ifndef INCLUDED_PROFILER2 | ||||
#define INCLUDED_PROFILER2 | #define INCLUDED_PROFILER2 | ||||
#include <map> | |||||
#include <thread> | |||||
#include "lib/timer.h" | #include "lib/timer.h" | ||||
#include "ps/ThreadUtil.h" | #include "ps/ThreadUtil.h" | ||||
#include <map> | |||||
#include <mutex> | #include <mutex> | ||||
#include <vector> | |||||
#include <thread> | |||||
struct mg_context; | struct mg_context; | ||||
// Note: Lots of functions are defined inline, to hypothetically | // Note: Lots of functions are defined inline, to hypothetically | ||||
// minimise performance overhead. | // minimise performance overhead. | ||||
class CProfiler2GPU; | class CProfiler2GPU; | ||||
▲ Show 20 Lines • Show All 462 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator