Heroes of Newerth Wiki
Advertisement

This function starts profiling in a client with profiling enabled. Does nothing in the retail client.

StartProfile(sName)

This function call needs to be followed up with a

StopProfile()

call to specify what block to profile.

Arguments[ | ]

sName
String - An identifier to group the profiling results into.

Example[ | ]

StartProfile("PositionSelfCreepWave")
	unitTarget = core.unitCreepTarget
	vecDesiredPos = behaviorLib.PositionSelfCreepWave(botBrain, unitTarget, tLocalUnits)
StopProfile()

Details[ | ]

  • You need to have a client compiled with profiling enabled for this function to work. The retail client does not support this but the SBT client does.
  • The results of profiling can be retrieved via the console with the following commands:
  • ProfileDraw
  • ProfileEval
  • ProfileNode
  • ProfileOwnsItems
  • ProfilePrint
  • ProfilePrintAverage
  • ProfilePrintMax
  • ProfileResetAverage
  • ProfileResetMax
  • ProfileStart
Advertisement