Skip to content

Commit

Permalink
Make profiling information more easily understandable
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed May 30, 2013
1 parent 105b2b2 commit 62a641f
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -230,7 +230,7 @@ public TableFormatter writeData(TableFormatter tf) {
double totalTime = this.totalTime.get();
final List<Object> sortedSingleKeysByTime = Ordering.natural().reverse().onResultOf(Functions.forMap(singleTime)).immutableSortedCopy(singleTime.keySet());
tf
.heading("Obj")
.heading("Single Entity")
.heading("Time/Tick")
.heading("%");
for (int i = 0; i < 5 && i < sortedSingleKeysByTime.size(); i++) {
Expand Down Expand Up @@ -284,8 +284,8 @@ public ComparableLongHolder get(Object key_) {
tf.sb.append('\n');
final List<Class<?>> sortedKeysByTime = Ordering.natural().reverse().onResultOf(Functions.forMap(time)).immutableSortedCopy(time.keySet());
tf
.heading("Class")
.heading("Total Time/Tick")
.heading("All Entities of Type")
.heading("Time/Tick")
.heading("%");
for (int i = 0; i < 5 && i < sortedKeysByTime.size(); i++) {
tf
Expand All @@ -301,7 +301,7 @@ public ComparableLongHolder get(Object key_) {
}
final List<Class<?>> sortedKeysByTimePerTick = Ordering.natural().reverse().onResultOf(Functions.forMap(timePerTick)).immutableSortedCopy(timePerTick.keySet());
tf
.heading("Class")
.heading("Average Entity of Type")
.heading("Time/tick")
.heading("Calls");
for (int i = 0; i < 5 && i < sortedKeysByTimePerTick.size(); i++) {
Expand Down

0 comments on commit 62a641f

Please sign in to comment.