View at: Template:Commands/content [edit]
Commands/jfr - minecraft.fandom.com
Jump to navigation
Jump to search
Treść tej podstrony pochodzi z artykułu „Commands/jfr” w domenie minecraft.fandom.com na licencji CC BY-NC-SA 3.0
Starts and stops profiling with Java FlightRecorder as well as a few custom events.
Usage[]
Profiling contains several custom events below:
minecraft.ServerTickTime: sampling event exposing average server tick times at one second intervals.minecraft.ChunkGeneration: time taken to generate individual chunk stages.minecraft.PacketRead|minecraft.PacketSent:network traffic.minecraft.WorldLoadFinishedEvent: initial world loading duration.
A summary JSON report is written both to the log file and in the debug folder accompanied by a .jfr recording ready to be analyzed in i.e JMC or any other profiler tool supporting the format.
Syntax[]
jfr start- Start JFR profiling.
jfr stop- Stop JFR profiling.
Result[]
| Command | Trigger | Java Edition |
|---|---|---|
/jfr start | a jfr profiler has already been started | Failed |
/jfr stop | there's no jfr profiler running. | |
| any | Otherwise | Successful |
Output[]
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| any | Java Edition | On fail | N/A | 0 | 0 |
| On success | N/A | 1 | 1 |
History[]
| Java Edition | |||||
|---|---|---|---|---|---|
| 1.18 | 21w37a | Added /jfr. | |||