int prot, fd;
TraceIndex traceIndex;
+ if (AllocationData::display == AllocationData::DisplayId::malloc) {
+ // we don't need the mmap/munmap details information for malloc statistics
+ continue;
+ }
+
if (!(reader >> length)
|| !(reader >> prot)
|| !(reader >> fd)
} else if (reader.mode() == '/') {
uint64_t length, ptr;
+ if (AllocationData::display == AllocationData::DisplayId::malloc) {
+ // we don't need the mmap/munmap details information for malloc statistics
+ continue;
+ }
+
if (!(reader >> length)
|| !(reader >> ptr)) {
cerr << "failed to parse line: " << reader.line() << endl;
continue;
}
+ if (AllocationData::display == AllocationData::DisplayId::malloc) {
+ // we don't need the physical memory consumption details information for malloc statistics
+ continue;
+ }
+
uint64_t addr, diff, size, privateDirty, privateClean, sharedDirty, sharedClean;
int prot;
} else if (reader.mode() == '+') {
AllocationInfo info;
AllocationIndex allocationIndex;
+
+ if (AllocationData::display != AllocationData::DisplayId::malloc) {
+ // we don't need the malloc/calloc/realloc/free details information for malloc statistics
+ continue;
+ }
+
if (fileVersion >= 1) {
if (!(reader >> allocationIndex.index)) {
cerr << "failed to parse line: " << reader.line() << endl;
} else if (reader.mode() == '-') {
AllocationIndex allocationInfoIndex;
bool temporary = false;
+
+ if (AllocationData::display != AllocationData::DisplayId::malloc) {
+ // we don't need the malloc/calloc/realloc/free details information for malloc statistics
+ continue;
+ }
+
if (fileVersion >= 1) {
if (!(reader >> allocationInfoIndex.index)) {
cerr << "failed to parse line: " << reader.line() << endl;