Skip to content

Commit

Permalink
Remove collection time from GC stats output
Browse files Browse the repository at this point in the history
It's not very interesting.
  • Loading branch information
zorael committed Feb 26, 2025
1 parent 91bb739 commit 5d247e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/kameloso/misc.d
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ void printGCStats()
pausePattern,
(profileStats.totalPauseTime.total!"hnsecs" / 10_000.0));

enum collectionPattern = "Collection time: <l>%.1,f</> ms";
/*enum collectionPattern = "Collection time: <l>%.1,f</> ms";
logger.infof(
collectionPattern,
(profileStats.totalCollectionTime.total!"hnsecs" / 10_000.0));
(profileStats.totalCollectionTime.total!"hnsecs" / 10_000.0));*/
}
else if (profileStats.numCollections > 1)
{
Expand All @@ -209,11 +209,11 @@ void printGCStats()
profileStats.numCollections,
(profileStats.maxPauseTime.total!"hnsecs" / 10_000.0));

enum collectionPattern = "Sum of collection cycles: <l>%.1,f</> ms (max: <l>%.1,f</> ms)";
/*enum collectionPattern = "Sum of collection cycles: <l>%.1,f</> ms (max: <l>%.1,f</> ms)";
logger.infof(
collectionPattern,
(profileStats.totalCollectionTime.total!"hnsecs" / 10_000.0),
(profileStats.maxCollectionTime.total!"hnsecs" / 10_000.0));
(profileStats.maxCollectionTime.total!"hnsecs" / 10_000.0));*/
}
/*else
{
Expand Down

0 comments on commit 5d247e7

Please sign in to comment.