Improved profiler logs format
This commit is contained in:
parent
d554772e7f
commit
687ec9ff28
1 changed files with 2 additions and 2 deletions
|
@ -100,10 +100,10 @@ public class LocalProfiler {
|
||||||
final long self = (timeElapsed - stackElement.internal) / 1000;
|
final long self = (timeElapsed - stackElement.internal) / 1000;
|
||||||
final long total = timeElapsed / 1000;
|
final long total = timeElapsed / 1000;
|
||||||
if (total == self) {
|
if (total == self) {
|
||||||
WarpDrive.logger.info(String.format("Profiling %s: %f ms",
|
WarpDrive.logger.info(String.format("Profiling %s: %.3f ms",
|
||||||
stackElement.name, (self / 1000.0F) ));
|
stackElement.name, (self / 1000.0F) ));
|
||||||
} else {
|
} else {
|
||||||
WarpDrive.logger.info(String.format("Profiling %s: %f ms, total; %f ms",
|
WarpDrive.logger.info(String.format("Profiling %s: %.3f ms, total; %.3f ms",
|
||||||
stackElement.name, (self / 1000.0F), total / 1000.0F ));
|
stackElement.name, (self / 1000.0F), total / 1000.0F ));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue