Created
May 23, 2018 12:30
-
-
Save gunlee01/1b239accb5078cd9ebdf3394df24e13e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String objType = $counter.getObjType(); | |
String objName = $counter.getObjName(); | |
float value = $counter.getFloatValue(); | |
float tps = $counter.getFloatValue("TPS"); | |
String title = "Elapsed time alert"; | |
String message = "Elapsed is over 2,000ms\n"; | |
message += "[current value] " + $$.formatNumber(value, 0) + "ms\n"; | |
message += "[objType] " + objType + "\n"; | |
message += "[objName] " + objName + "\n"; | |
message += "[TPS] " + $$.formatNumber(tps); | |
if(value > 2000 && tps > 10.0) { | |
$counter.fatal(title, message); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment