Use fewer header files
Removing some includes to reduce the code that is dragged in.
This commit is contained in:
committed by
Matthew Parkinson
parent
30ad9722a7
commit
4faf9f3bee
@@ -49,6 +49,7 @@ namespace snmalloc
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef USE_SNMALLOC_STATS
|
||||
void print_all_stats(std::ostream& o, uint64_t dumpid = 0)
|
||||
{
|
||||
auto alloc = Parent::iterate();
|
||||
@@ -59,6 +60,12 @@ namespace snmalloc
|
||||
alloc = Parent::iterate(alloc);
|
||||
}
|
||||
}
|
||||
#else
|
||||
void print_all_stats(void*& o, uint64_t dumpid = 0)
|
||||
{
|
||||
UNUSED(o); UNUSED(dumpid);
|
||||
}
|
||||
#endif
|
||||
|
||||
void cleanup_unused()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user