#include <sys/time.h>
#include <sys/unistd.h>
#include <unistd.h>
+#ifndef __FreeBSD__
#include <malloc.h>
+#endif // __FreeBSD__
#include <stdio.h>
#include <iostream>
#include <algorithm>
}
static long getMemUsage() {
+#ifndef __FreeBSD__
if (TrackSpace) {
struct mallinfo MI = mallinfo();
return MI.uordblks/*+MI.hblkhd*/;
- } else {
- return 0;
}
+#endif // __FreeBSD__
+ return 0;
}
struct TimeRecord {
#include <sys/time.h>
#include <sys/unistd.h>
#include <unistd.h>
+#ifndef __FreeBSD__
#include <malloc.h>
+#endif // __FreeBSD__
#include <stdio.h>
#include <iostream>
#include <algorithm>
}
static long getMemUsage() {
+#ifndef __FreeBSD__
if (TrackSpace) {
struct mallinfo MI = mallinfo();
return MI.uordblks/*+MI.hblkhd*/;
- } else {
- return 0;
}
+#endif // __FreeBSD__
+ return 0;
}
struct TimeRecord {