ZeNyfh / gigavibe-java-edition

Music + Media bot made in java using JDA and Lavaplayer.
GNU General Public License v3.0
9 stars 3 forks source link

create getDump command #113

Closed ZeNyfh closed 1 year ago

ZeNyfh commented 1 year ago

dev command used for profiling the bot while its live

runs jps in terminal to get bot.jar PID

then runs jstack <PID> in the terminal and pipes that output to a file which then gets sent on discord (can be done directly through JDA without the need to make a new file on the system)

this will need to be different on Windows but this will do for now.

ZeNyfh commented 1 year ago

oh and with this information, optimisation can happen.