Modifications pour le document FreeMem
Modifié par superadmin le 2021/12/12 23:50
Commentaire de modification :
Il n'y a aucun commentaire pour cette version
Résumé
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -1,6 +1,9 @@ 1 +{{{ 1 1 {{groovy}} 3 +def t = new java.text.DecimalFormat("000,000,000,000"); 2 2 def rt = Runtime.getRuntime(); 3 -println("- free memory " + rt.freeMemory()) 4 -println("- max memory " + rt.maxMemory()) 5 -println("- total memory " + rt.totalMemory()) 5 +println("- free memory " + t.format(rt.freeMemory())) 6 +println("- max memory " + t.format(rt.maxMemory())) 7 +println("- total memory " + t.format(rt.totalMemory())) 6 6 {{/groovy}} 9 +}}}