-enablestatsflag in the command line
enablestats="true"setting with the ANT task
OptionFlags.getInstance().setEnableStats(true)from your Java code
-htmlstatsflag in the command line. A file plantuml-stats.xml or plantuml-stats.html will be written at the end of the process: If you want to generate statistics on the fly (rather than at the end of the process), you can use the flag
-realtimestats. There is also a
-loopstatsflag in the command line that continuously prints to the console statistics about diagram generations. This could be useful if you have some background daemon running PlantUML. Some of those options are also available with the ANT task.
StatsUtils.getStats()methods that return a
Statsobject with all datas. You can retrieve it to use it as you wish. Here is a short class diagram about this API: