Unravel Engine C++ Reference
Loading...
Searching...
No Matches
profiler.cpp File Reference
#include "profiler.h"
#include <base/platform/process_memory.hpp>
#include <graphics/graphics.h>
#include <dotnetpp/dotnetpp.h>
#include <algorithm>
#include <cstring>
#include <sstream>
#include <thread>

Go to the source code of this file.

Namespaces

namespace  unravel
 

Functions

auto unravel::get_app_profiler () -> performance_profiler *
 
auto unravel::ensure_thread_registered (const char *thread_name=nullptr) -> thread_profile_data *
 Register the current thread on first use. thread_name if non-null and non-empty is stored as the lane label; otherwise "Thread-{id}" is used. Called at most once per thread (TLS).
 

Variable Documentation

◆ busy_ms

float busy_ms {0.0f}

Definition at line 23 of file profiler.cpp.

◆ busy_ratio

float busy_ratio {1.0f}

Definition at line 24 of file profiler.cpp.