![]() |
Shkyera Engine
Easy to use, game engine for Python
|
#include <Profiler.hpp>
Public Types | |
| using | BlocksPerThread = std::map< std::thread::id, std::map< std::string, ProfileBlock > > |
Public Member Functions | |
| void | clear () |
| void | addBlock (std::string &&name, std::chrono::nanoseconds time) |
| BlocksPerThread | getProfiles () |
Static Public Member Functions | |
| static Profiler & | getInstance () |
Private Member Functions | |
| Profiler ()=default | |
Private Attributes | |
| std::mutex | mMutex |
| BlocksPerThread | mProfileBlocks |
| using shkyera::Profiler::BlocksPerThread = std::map<std::thread::id, std::map<std::string, ProfileBlock> > |
|
privatedefault |
| void shkyera::Profiler::addBlock | ( | std::string && | name, |
| std::chrono::nanoseconds | time | ||
| ) |
| void shkyera::Profiler::clear | ( | ) |
|
static |
| Profiler::BlocksPerThread shkyera::Profiler::getProfiles | ( | ) |
|
private |
|
private |