EyeAI
Loading...
Searching...
No Matches
ProfilingFrame Class Reference

collection of profile records from different threads (lock-free thread-safe) More...

#include <Profiling.hpp>

Public Member Functions

 ProfilingFrame (std::string_view name) noexcept
 
int start_scope () noexcept
 returns the scopes depth, should always include calling end_scope after
 
void end_scope (const ProfileScopeRecord &scope) noexcept
 
std::string finish ()
 

Detailed Description

collection of profile records from different threads (lock-free thread-safe)

Constructor & Destructor Documentation

◆ ProfilingFrame()

ProfilingFrame::ProfilingFrame ( std::string_view name)
inlineexplicitnoexcept

Member Function Documentation

◆ end_scope()

void ProfilingFrame::end_scope ( const ProfileScopeRecord & scope)
noexcept

◆ finish()

std::string ProfilingFrame::finish ( )

returns formatted info of the finished frame and clears all contents to start a new frame

◆ start_scope()

int ProfilingFrame::start_scope ( )
noexcept

returns the scopes depth, should always include calling end_scope after