AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
APerformanceSection Class Reference

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

Detailed Description

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

See also
Profiling

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. More...
 

Constructor & Destructor Documentation

◆ APerformanceSection()

APerformanceSection::APerformanceSection ( const char *  name,
AOptional< AColor color = std::nullopt,
std::string  verboseInfo = {} 
)
inline

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

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.

#include <AUI/Performance/APerformanceSection.h>


The documentation for this class was generated from the following file: