AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
APerformanceSection Class Reference

Defines performance profiling named (and colored) span within RAII range. More...

#include <AUI/Performance/APerformanceSection.h>

Classes#

struct  Data
 

Public Types#

using Datas = AVector<Data>
 

Public Member Functions#

 APerformanceSection (const char *name, AOptional< AColor > color=std::nullopt, std::string verboseInfo={})
 Defines performance profiling named (and colored) span within RAII range.
 

Detailed Description#

See also
Profiling

Constructor & Destructor Documentation#

◆ APerformanceSection()#

APerformanceSection::APerformanceSection ( const char * name,
AOptional< AColor > color = std::nullopt,
std::string verboseInfo = {} )
inline
Parameters
namename of the section. Since it is a C-style string, it must be alive during the whole lifetime of the program. Typically, you would want to use string literals. C-style string is used to avoid performance overhead.
colorcolor of the section. If nullopt, it would be generated from name.
verboseInfoextra usefull information that displayed in tree view in paused mode.