Single-file DBugR Support plugin, which wraps every cached plugin hook in a DBugR profiler when the DBugR addon is installed.

Its ClockworkLoaded hook detours the hooks in plugin.GetCache() once and reports the run time of each to DBugR as <plugin name>:<hook name>.

Summary

Hooks

Called when Catwork has loaded; wraps every cached plugin hook in a DBugR profiler.

Hooks

PLUGIN:ClockworkLoaded()

shared gamemodes/catwork/plugins/sh_dbugr.lua:19

Implements hook ClockworkLoaded

Called when Catwork has loaded; wraps every cached plugin hook in a DBugR profiler.

Each hook's run time is reported to DBugR as <plugin name>:<hook name>. Only defined when DBugR is installed, and only detours the hooks once.

Defined in