memBaseline.cpp revision 3863
3863N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 3863N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3863N/A * This code is free software; you can redistribute it and/or modify it 3863N/A * under the terms of the GNU General Public License version 2 only, as 3863N/A * published by the Free Software Foundation. 3863N/A * This code is distributed in the hope that it will be useful, but WITHOUT 3863N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3863N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3863N/A * version 2 for more details (a copy is included in the LICENSE file that 3863N/A * You should have received a copy of the GNU General Public License version 3863N/A * 2 along with this work; if not, write to the Free Software Foundation, 3863N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3863N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3863N/A {
mtNone,
"Unknown"}
// It can happen when type tagging records are lagging 3863N/A// baseline malloc'd memory records, generate overall summary and summaries by 3863N/A // see if arena size record present 3863N/A // substract used arena size to get size of arena chunk in free list 3863N/A // we really don't know how many chunks in free list, so just set to 3863N/A// baseline mmap'd memory records, generate overall summary and summaries by 3863N/A // we use the number of thread stack to count threads 3863N/A// baseline malloc'd memory by callsites, but only the callsites with memory allocation 3863N/A // baseline memory that is totaled over 1 KB 3863N/A// baseline mmap'd memory by callsites 3863N/A// baseline a snapshot. If summary_only = false, memory usages aggregated by 3863N/A// callsites are also baselined. 3863N/A/* compare functions for sorting */ 3863N/A// sort snapshot malloc'd records in callsite pc order 3863N/A// sort baselined malloc'd records in size order 3863N/A// sort baselined malloc'd records in callsite pc order 3863N/A// sort snapshot mmap'd records in callsite pc order 3863N/A// sort baselined mmap'd records in size (reserved size) order 3863N/A// sort baselined mmap'd records in callsite pc order 3863N/A// sort snapshot malloc'd records in memory block address order 3863N/A// sort snapshot mmap'd records in memory block address order