MicroBenchmark
Classes | Macros
MicroBenchmarkSubsystem.h File Reference

Classes

struct  FBenchResult
 result struct for a benchmark More...
 
class  UMicroBenchmarkSubsystem
 

Macros

#define TIC(BECHMARK_NAME)   GetGameInstance()->GetSubsystem<UMicroBenchmarkSubsystem>()->Tic(BECHMARK_NAME);
 Shorthand macro to start a micro benchmark. More...
 
#define TOC(BECHMARK_NAME, bSHOWLOG)   GetGameInstance()->GetSubsystem<UMicroBenchmarkSubsystem>()->Toc(BECHMARK_NAME,bSHOWLOG);
 Shorthand macro to stop a micro benchmark. More...
 

Macro Definition Documentation

◆ TIC

#define TIC (   BECHMARK_NAME)    GetGameInstance()->GetSubsystem<UMicroBenchmarkSubsystem>()->Tic(BECHMARK_NAME);

Shorthand macro to start a micro benchmark.

Parameters
BECHMARK_NAMEname of benchmark / code block to measure

◆ TOC

#define TOC (   BECHMARK_NAME,
  bSHOWLOG 
)    GetGameInstance()->GetSubsystem<UMicroBenchmarkSubsystem>()->Toc(BECHMARK_NAME,bSHOWLOG);

Shorthand macro to stop a micro benchmark.

Parameters
BECHMARK_NAMEname of benchmark / code block to measure
bSHOWLOGprint results to screen/log