Fx2D
A C++20 2D rigid-body physics engine
Loading...
Searching...
No Matches
Profile.h File Reference
#include <cstddef>
+ Include dependency graph for Profile.h:

Go to the source code of this file.

Namespaces

namespace  FxProfile
 

Macros

#define FX2D_PROF_SCOPE(slot)   ((void)0)
 
#define FX2D_PROF_STEP()   ((void)0)
 

Enumerations

enum  FxProfile::Slot : int {
  FxProfile::BroadPhase = 0 , FxProfile::NarrowPhase , FxProfile::PositionSolve , FxProfile::Constraints ,
  FxProfile::Integration , FxProfile::VelocityDerive , FxProfile::VelocityPasses , FxProfile::Bookkeeping ,
  FxProfile::StepTotal , FxProfile::SlotCount
}
 

Functions

bool FxProfile::enabled ()
 
const char * FxProfile::slot_name (Slot slot)
 
double FxProfile::ms (Slot slot)
 
std::size_t FxProfile::steps ()
 
void FxProfile::reset ()
 
void FxProfile::add (Slot slot, double elapsed_ms)
 
void FxProfile::count_step ()
 

Macro Definition Documentation

◆ FX2D_PROF_SCOPE

#define FX2D_PROF_SCOPE (   slot)    ((void)0)

Definition at line 75 of file Profile.h.

◆ FX2D_PROF_STEP

#define FX2D_PROF_STEP ( )    ((void)0)

Definition at line 76 of file Profile.h.