float tps = ticks * 1000f / timeProfiled;
tables.add(0, CollectionsUtil.map(
"TPS", tps,
"Load", TableFormatter.formatDoubleWithPrecision((MinecraftServer.getTickTime() * 100) / MinecraftServer.getTargetTickTime(), 2)
));
objectMapper.writerWithDefaultPrettyPrinter().writeValue(file, tables);
}
public TableFormatter writeStringData(TableFormatter tf) {
return writeStringData(tf, 5);
}