Console commands¶
The following are commands that can be typed in the Console tab. In order for a command to be interpreted as such, you must prefix it with a colon symbol when entering it in the command prompt:
crash¶
Crash the engine for testing purposes. Accepts the following parameters:
div_by_zeroDivide a number by zero.
unalignedDo an unaligned memory access.
segfaultTrigger a segmentation fault.
oomAllocate too much memory.
assertCall CE_ASSERT(false).
game¶
Pause/resume the game. Accepts one of the following parameters:
pausePause the game.
resumeResume the game.
help¶
List all commands.
unpause¶
Resume the engine. Deprecated, use game instead.
pause¶
Pause the engine. Deprecated, use game instead.
graph¶
Plot selected profiler data over time. The <field> parameter must be the name of a profiler record that the engine provides itself or one that you recorded via the Profiler API. The command accepts the following parameters:
make <name>Create a new graph.
listList all the graphs.
range <graph> [min max]Set the range of a graph. If the range is omitted, it will be automatically computed.
add <graph> <field>Add a field to a graph.
remove <graph> <field>Remove a field from a graph.
hide <graph>Hide a graph.
show <graph>Show a graph.
layout <graph> <type>Set the layout of a graph. Type can be one of:
fill,left,right,bottomortop.color <graph> <field> <color>Set the color of a field in a graph. Color can be specified as a 3- or 6-digits hexadecimal RGB number or can be any of:
yellow,red,greenorblue.samples <graph> <samples>Set the number of samples to show in a graph.