On a server I play on, we suffered from quite severe tick lag when the functions in our custom datapack were turned on. Turning off the functions returned the server to a more playable state.
Of course we like the custom things we made, so we want to figure out if one of the functions is particularly expensive to run. Is there a way to profile the performance of individual functions of a data pack on the server side, either via regular Minecraft configuration or via Spigot?