Code source wiki de FreeMem

Modifié par superadmin le 2021/12/12 23:50

Afficher les derniers auteurs
1 {{groovy}}
2 def t = new java.text.DecimalFormat("000,000,000,000");
3 def rt = Runtime.getRuntime();
4 println("{{{- free memory " + t.format(rt.freeMemory()) + "}}}")
5 println("{{{- max memory " + t.format(rt.maxMemory()) + "}}}")
6 println("{{{- total memory " + t.format(rt.totalMemory())+ "}}}")
7 {{/groovy}}
This wiki is licensed under a Creative Commons 2.0 license
XWiki 13.10 - Documentation - Conditions