Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
profile.h File Reference

Profiling macros that dispatch to one of three backends, selected at compile time: More...

Go to the source code of this file.

Macros

#define MT_PROFILE_FUNCTION()
#define MT_PROFILE_FUNCTION_CATEGORY(CATEGORY)
#define MT_PROFILE_EVENT(NAME)
#define MT_PROFILE_EVENT_DYNAMIC(NAME)
#define MT_PROFILE_CATEGORY(NAME, CATEGORY)
#define MT_PROFILE_PREPARE_PUSH_POP()
#define MT_PROFILE_PUSH(NAME)
#define MT_PROFILE_POP()
#define MT_PROFILE_THREAD(THREAD_NAME)
#define MT_PROFILE_UPDATE()
#define MT_PROFILE_BEGIN_FRAME()
#define MT_PROFILE_END_FRAME()
#define MT_PROFILE_METADATA(NAME, DATA)

Detailed Description

Profiling macros that dispatch to one of three backends, selected at compile time:

  • XR Profiler when MOMENTUM_WITH_XR_PROFILER is defined (forwards to XR_PROFILE_* from arvr/libraries/profile_redirect/annotate.hpp).
  • Tracy when MOMENTUM_WITH_TRACY_PROFILER is defined (forwards to Tracy's ZoneScoped / ZoneNamedN / FrameMark, etc.).
  • No-op otherwise: every MT_PROFILE_* macro expands to nothing, so instrumentation can be left in source with zero runtime cost.

All macros are safe to use unconditionally in library code; the active backend is determined entirely by the build configuration.

Definition in file profile.h.

Macro Definition Documentation

◆ MT_PROFILE_BEGIN_FRAME

#define MT_PROFILE_BEGIN_FRAME ( )

Definition at line 120 of file profile.h.

◆ MT_PROFILE_CATEGORY

#define MT_PROFILE_CATEGORY ( NAME,
CATEGORY )

Definition at line 114 of file profile.h.

◆ MT_PROFILE_END_FRAME

#define MT_PROFILE_END_FRAME ( )

Definition at line 121 of file profile.h.

◆ MT_PROFILE_EVENT

◆ MT_PROFILE_EVENT_DYNAMIC

#define MT_PROFILE_EVENT_DYNAMIC ( NAME)

Definition at line 113 of file profile.h.

◆ MT_PROFILE_FUNCTION

#define MT_PROFILE_FUNCTION ( )

Definition at line 110 of file profile.h.

Referenced by momentum::OnlineHouseholderQR< T >::addMutating(), momentum::ParameterTransformT< T >::apply(), momentum::ParameterTransformT< T >::apply(), momentum::applySSD(), momentum::applySSD(), momentum::MultiposeSolverFunctionT< T >::computeJacobianBlock(), momentum::SequenceSolverFunctionT< T >::computeJacobianBlock(), momentum::SkeletonSolverFunctionT< T >::computeJacobianBlock(), momentum::GaussNewtonSolverQRT< T >::doIteration(), momentum::GaussNewtonSolverT< T >::doIteration(), momentum::GradientDescentSolverT< T >::doIteration(), momentum::MultiposeSolverT< T >::doIteration(), momentum::SequenceSolverT< T >::doIteration(), momentum::SparseGaussNewtonSolverT< T >::doIteration(), momentum::SubsetGaussNewtonSolverT< T >::doIteration(), momentum::TrustRegionQRT< T >::doIteration(), momentum::AimDirErrorFunctionT< T >::evalFunction(), momentum::AimDistErrorFunctionT< T >::evalFunction(), momentum::FixedAxisAngleErrorFunctionT< T >::evalFunction(), momentum::FixedAxisCosErrorFunctionT< T >::evalFunction(), momentum::FixedAxisDiffErrorFunctionT< T >::evalFunction(), momentum::NormalErrorFunctionT< T >::evalFunction(), momentum::OrientationErrorFunctionT< T >::evalFunction(), momentum::OrientationRotDiffErrorFunctionT< T >::evalFunction(), momentum::PlaneErrorFunctionT< T >::evalFunction(), momentum::PositionErrorFunctionT< T >::evalFunction(), momentum::extrapolateModelParameters(), momentum::extrapolateModelParameters(), momentum::FiniteDifferenceSequenceErrorFunctionT< T >::getError(), momentum::FloorErrorFunctionT< T >::getError(), momentum::HeightErrorFunctionT< T >::getError(), momentum::JointErrorFunctionT< T, Data, FuncDim, NumVec, NumPos >::getError(), momentum::JointToJointSequenceErrorFunctionT< T >::getError(), momentum::LimitErrorFunctionT< T >::getError(), momentum::PointTriangleVertexErrorFunctionT< T >::getError(), momentum::SDFCollisionErrorFunctionT< T, SdfColliderType >::getError(), momentum::SDFCollisionSequenceErrorFunctionT< T, SdfColliderType >::getError(), momentum::SkinnedLocatorErrorFunctionT< T >::getError(), momentum::SkinnedLocatorTriangleErrorFunctionT< T >::getError(), momentum::StateErrorFunctionT< T >::getError(), momentum::StateSequenceErrorFunctionT< T >::getError(), momentum::VelocityMagnitudeSequenceErrorFunctionT< T >::getError(), momentum::VertexSDFErrorFunctionT< T >::getError(), momentum::VertexSequenceErrorFunctionT< T >::getError(), momentum::VertexVertexDistanceErrorFunctionT< T >::getError(), momentum::CenterOfMassErrorFunctionT< T >::getGradient(), momentum::FiniteDifferenceSequenceErrorFunctionT< T >::getGradient(), momentum::FloorErrorFunctionT< T >::getGradient(), momentum::HeightErrorFunctionT< T >::getGradient(), momentum::JointErrorFunctionT< T, Data, FuncDim, NumVec, NumPos >::getGradient(), momentum::JointToJointOrientationErrorFunctionT< T >::getGradient(), momentum::JointToJointPositionErrorFunctionT< T >::getGradient(), momentum::JointToJointSequenceErrorFunctionT< T >::getGradient(), momentum::LimitErrorFunctionT< T >::getGradient(), momentum::PosePriorErrorFunctionT< T >::getGradient(), momentum::SDFCollisionErrorFunctionT< T, SdfColliderType >::getGradient(), momentum::SDFCollisionSequenceErrorFunctionT< T, SdfColliderType >::getGradient(), momentum::StateErrorFunctionT< T >::getGradient(), momentum::StateSequenceErrorFunctionT< T >::getGradient(), momentum::VelocityMagnitudeSequenceErrorFunctionT< T >::getGradient(), momentum::VertexSDFErrorFunctionT< T >::getGradient(), momentum::VertexSequenceErrorFunctionT< T >::getGradient(), momentum::VertexVertexDistanceErrorFunctionT< T >::getGradient(), momentum::CenterOfMassErrorFunctionT< T >::getJacobian(), momentum::CollisionErrorFunctionStatelessT< T >::getJacobian(), momentum::CollisionErrorFunctionT< T >::getJacobian(), momentum::FiniteDifferenceSequenceErrorFunctionT< T >::getJacobian(), momentum::FloorErrorFunctionT< T >::getJacobian(), momentum::HeightErrorFunctionT< T >::getJacobian(), momentum::JointErrorFunctionT< T, Data, FuncDim, NumVec, NumPos >::getJacobian(), momentum::JointToJointDistanceErrorFunctionT< T >::getJacobian(), momentum::JointToJointOrientationErrorFunctionT< T >::getJacobian(), momentum::JointToJointPositionErrorFunctionT< T >::getJacobian(), momentum::JointToJointSequenceErrorFunctionT< T >::getJacobian(), momentum::LimitErrorFunctionT< T >::getJacobian(), momentum::ModelParametersErrorFunctionT< T >::getJacobian(), momentum::ModelParametersSequenceErrorFunctionT< T >::getJacobian(), momentum::PlaneCollisionErrorFunctionT< T >::getJacobian(), momentum::PosePriorErrorFunctionT< T >::getJacobian(), momentum::SDFCollisionErrorFunctionT< T, SdfColliderType >::getJacobian(), momentum::SDFCollisionSequenceErrorFunctionT< T, SdfColliderType >::getJacobian(), momentum::StateErrorFunctionT< T >::getJacobian(), momentum::StateSequenceErrorFunctionT< T >::getJacobian(), momentum::VelocityMagnitudeSequenceErrorFunctionT< T >::getJacobian(), momentum::VertexSDFErrorFunctionT< T >::getJacobian(), momentum::VertexSequenceErrorFunctionT< T >::getJacobian(), momentum::VertexVertexDistanceErrorFunctionT< T >::getJacobian(), momentum::SkeletonSolverFunctionT< T >::getSolverDerivatives(), momentum::MultiposeSolverFunctionT< T >::initializeJacobianComputation(), momentum::SequenceSolverFunctionT< T >::initializeJacobianComputation(), momentum::SkeletonSolverFunctionT< T >::initializeJacobianComputation(), momentum::SequenceCholeskySolverT< T >::initializeSolver(), momentum::SequenceSolverT< T >::initializeSolver(), momentum::SkeletonStateT< T >::set(), momentum::SkeletonStateT< T >::set(), momentum::SkeletonStateT< T >::set(), momentum::SolverT< T >::solve(), and momentum::MeshStateT< T >::update().

◆ MT_PROFILE_FUNCTION_CATEGORY

#define MT_PROFILE_FUNCTION_CATEGORY ( CATEGORY)

Definition at line 111 of file profile.h.

◆ MT_PROFILE_METADATA

#define MT_PROFILE_METADATA ( NAME,
DATA )

Definition at line 122 of file profile.h.

◆ MT_PROFILE_POP

#define MT_PROFILE_POP ( )

Definition at line 117 of file profile.h.

◆ MT_PROFILE_PREPARE_PUSH_POP

#define MT_PROFILE_PREPARE_PUSH_POP ( )

Definition at line 115 of file profile.h.

◆ MT_PROFILE_PUSH

#define MT_PROFILE_PUSH ( NAME)

Definition at line 116 of file profile.h.

◆ MT_PROFILE_THREAD

#define MT_PROFILE_THREAD ( THREAD_NAME)

Definition at line 118 of file profile.h.

◆ MT_PROFILE_UPDATE

#define MT_PROFILE_UPDATE ( )

Definition at line 119 of file profile.h.