Plugins/Profiler

From Torch Wiki
Jump to: navigation, search

The Profiler is a plugin created by the torch team. It adds tools for exploring causes of lag and is also useful to check real condition mod performance.

You can run a profiling command from the server in the chat tab or as admin in the in-game chat.

The command syntax is "!profile type --option1=xyz --option2=xzy ..."

Profiling type: You can profile different parts of the game for different purposes. These types are:

blocktypes
blocks
grids
mods
session
factions
players
physics
scripts
cleangps


Profiling options: Most types can be run with optional commands. These change how the results get displayed, or how long the profiling will take

--ticks=TickAmount to set how long the profiling should run (default 900 ~15sec)
--top=ReportEntries to set how many of the top entries should be returned (default 10)
--player=PlayerName to report values for a single player
--faction=FactionTag to report values for a single faction
--entity=EntityId to report values for a specific entity
--mod=ModID to report values for a specific mod
--this to profile the entity you're currently controlling (players only)
--gps to show positional results as GPS points (players only)