ExMujoco.Types.CTimer (ExMujoco v0.2.3)

Copy Markdown View Source

mjtCTimer — compiler timing categories. From MuJoCo's headers, as numbers. All 10 values carry a number in the header.

Summary

Functions

mjCTIMER_ASSETS is 1 — asset compilation.

mjCTIMER_MESH_BVH is 7 — mesh: bounding volume hierarchy.

mjCTIMER_MESH_HULL is 4 — mesh: convex hull.

mjCTIMER_MESH_INERTIA is 6 — mesh: volume, CoM, inertia.

mjCTIMER_MESH_LOAD is 3 — mesh: file loading.

mjCTIMER_MESH_OCTREE is 8 — mesh: octree and SDF.

mjCTIMER_MESH_POLYGON is 5 — mesh: normals and polygons.

mjNCTIMER is 9 — number of compiler timers.

mjCTIMER_TEXTURE is 2 — textures.

The name behind an integer. An atom is already one.

The integer behind a name. An integer is already one.

mjCTIMER_TOTAL is 0 — total compile time.

Every value, as {name, integer}, in the order the header lists them.

Types

t()

@type t() :: integer()

Functions

assets()

@spec assets() :: 1

mjCTIMER_ASSETS is 1 — asset compilation.

mesh_bvh()

@spec mesh_bvh() :: 7

mjCTIMER_MESH_BVH is 7 — mesh: bounding volume hierarchy.

mesh_hull()

@spec mesh_hull() :: 4

mjCTIMER_MESH_HULL is 4 — mesh: convex hull.

mesh_inertia()

@spec mesh_inertia() :: 6

mjCTIMER_MESH_INERTIA is 6 — mesh: volume, CoM, inertia.

mesh_load()

@spec mesh_load() :: 3

mjCTIMER_MESH_LOAD is 3 — mesh: file loading.

mesh_octree()

@spec mesh_octree() :: 8

mjCTIMER_MESH_OCTREE is 8 — mesh: octree and SDF.

mesh_polygon()

@spec mesh_polygon() :: 5

mjCTIMER_MESH_POLYGON is 5 — mesh: normals and polygons.

mjnctimer()

@spec mjnctimer() :: 9

mjNCTIMER is 9 — number of compiler timers.

texture()

@spec texture() :: 2

mjCTIMER_TEXTURE is 2 — textures.

to_atom(value)

@spec to_atom(integer() | atom()) :: atom() | nil

The name behind an integer. An atom is already one.

to_integer(value)

@spec to_integer(t() | atom()) :: integer() | nil

The integer behind a name. An integer is already one.

total()

@spec total() :: 0

mjCTIMER_TOTAL is 0 — total compile time.

values()

@spec values() :: [{atom(), integer()}]

Every value, as {name, integer}, in the order the header lists them.