diff options
Diffstat (limited to 'src/libmain/shared.hh')
-rw-r--r-- | src/libmain/shared.hh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libmain/shared.hh b/src/libmain/shared.hh index b662c6ccea96..a7e6ef762120 100644 --- a/src/libmain/shared.hh +++ b/src/libmain/shared.hh @@ -83,4 +83,21 @@ private: extern volatile ::sig_atomic_t blockInt; + +/* GC helpers. */ + +string showBytes(unsigned long long bytes); + +class GCResults; + +struct PrintFreed +{ + bool show; + const GCResults & results; + PrintFreed(bool show, const GCResults & results) + : show(show), results(results) { } + ~PrintFreed(); +}; + + } |