Cog profiling tools for bot owners and developers
This cog provides tools to profile the performance of other cogs' commands, methods, tasks, and listeners.
By default, metrics are not stored persistently and are only kept for 1 hour in memory. You can change these settings with the [p]profiler
base command.
- Usage:
[p]profiler
- Restricted to:
BOT_OWNER
Profiling commands
- Usage:
[p]profiler verbose
Toggle verbose stats
- Usage:
[p]profiler attach <cogs>
Attach a profiler to a cog
- Usage:
[p]profiler view
- Aliases:
v
View a menu of the current stats
- Usage:
[p]profiler settings
View the current profiler settings
- Usage:
[p]profiler memory [limit=15]
- Aliases:
mem and m
Profile memory usage of objects in the current environment
- Usage:
[p]profiler save
Toggle saving stats persistently
Warning: The config size can grow very large if this is enabled for a long time
- Usage:
[p]profiler delta <delta>
Set the data retention period in hours
- Usage:
[p]profiler detach <cogs>
Remove a cog from the profiling list
This will remove all collected stats for this cog from the config