mirror of
https://github.com/zeldaret/botw
synced 2026-05-25 15:25:09 -04:00
23 lines
490 B
C++
23 lines
490 B
C++
#pragma once
|
|
|
|
namespace ksys {
|
|
|
|
class BasicProfiler {
|
|
public:
|
|
class Scope {
|
|
public:
|
|
explicit Scope(const char* description) : mDescription(description) { push(description); }
|
|
~Scope() { pop(mDescription); }
|
|
Scope(const Scope&) = delete;
|
|
auto operator=(const Scope&) = delete;
|
|
|
|
private:
|
|
const char* mDescription;
|
|
};
|
|
|
|
static void push(const char* description);
|
|
static void pop(const char* description);
|
|
};
|
|
|
|
} // namespace ksys
|