The window of the hook profiler (profiler_window): a list of the server's hooks with their load and number of calls. It is opened with the fl_profiler_toggle console command and refreshed through update_metrics.

Summary

Methods

Init()client
Builds the hook list.
rebuild()client
Creates the list view if it is missing, then adds or updates one line per serverside hook with its load in milliseconds and its call count.
Stores new profiler data and refreshes the hook list.

Methods

PANEL:Init()

client plugins/sh_profiler.lua:138

Builds the hook list.

PANEL:rebuild()

client plugins/sh_profiler.lua:155

Creates the list view if it is missing, then adds or updates one line per serverside hook with its load in milliseconds and its call count.

PANEL:update_metrics(cl_metrics, cl_counts, sv_metrics, sv_counts)

client plugins/sh_profiler.lua:148

Stores new profiler data and refreshes the hook list.

Parameters

  • cl_metrics Map clientside run time in seconds by hook name
  • cl_counts Map clientside call counts by hook name
  • sv_metrics Map serverside run time in seconds by hook name
  • sv_counts Map serverside call counts by hook name

Defined in