Summary

Functions

Replaces hook.Call with a wrapper that measures the total run time and the number of calls of every hook.

Functions

hook.Call(name, gm, ...)

shared plugins/sh_profiler.lua:32

Replaces hook.Call with a wrapper that measures the total run time and the number of calls of every hook. Only installed in development mode and when DBugR is not present.

Parameters

  • name String hook name
  • gm Map gamemode table, or nil
  • ... Vararg arguments of the hook

Returns

  • Any up to six values returned by the original hook.Call

Defined in