9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/symbolTable.hpp"
27 #include "classfile/systemDictionary.hpp"
28 #include "classfile/vmSymbols.hpp"
29 #include "gc_implementation/shared/vmGCOperations.hpp"
30 #include "memory/gcLocker.inline.hpp"
31 #include "memory/genCollectedHeap.hpp"
32 #include "memory/universe.hpp"
33 #include "oops/objArrayKlass.hpp"
34 #include "oops/objArrayOop.inline.hpp"
35 #include "oops/oop.inline.hpp"
36 #include "runtime/javaCalls.hpp"
37 #include "runtime/jniHandles.hpp"
38 #include "runtime/os.hpp"
39 #include "runtime/reflectionUtils.hpp"
40 #include "runtime/vframe.hpp"
41 #include "runtime/vmThread.hpp"
42 #include "runtime/vm_operations.hpp"
43 #include "services/heapDumper.hpp"
44 #include "services/threadService.hpp"
45 #include "utilities/ostream.hpp"
46 #include "utilities/macros.hpp"
47 #if INCLUDE_ALL_GCS
48 #include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp"
49 #endif // INCLUDE_ALL_GCS
50
51 /*
52 * HPROF binary format - description copied from:
53 * src/share/demo/jvmti/hprof/hprof_io.c
54 *
55 *
56 * header "JAVA PROFILE 1.0.1" or "JAVA PROFILE 1.0.2"
57 * (0-terminated)
58 *
59 * u4 size of identifiers. Identifiers are used to represent
60 * UTF8 strings, objects, stack traces, etc. They usually
61 * have the same size as host pointers. For example, on
62 * Solaris and Win32, the size is 4.
63 * u4 high word
64 * u4 low word number of milliseconds since 0:00 GMT, 1/1/70
65 * [record]* a sequence of records.
66 *
67 *
68 * Record format:
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/symbolTable.hpp"
27 #include "classfile/systemDictionary.hpp"
28 #include "classfile/vmSymbols.hpp"
29 #include "gc/shared/gcLocker.inline.hpp"
30 #include "gc/shared/genCollectedHeap.hpp"
31 #include "gc/shared/vmGCOperations.hpp"
32 #include "memory/universe.hpp"
33 #include "oops/objArrayKlass.hpp"
34 #include "oops/objArrayOop.inline.hpp"
35 #include "oops/oop.inline.hpp"
36 #include "runtime/javaCalls.hpp"
37 #include "runtime/jniHandles.hpp"
38 #include "runtime/os.hpp"
39 #include "runtime/reflectionUtils.hpp"
40 #include "runtime/vframe.hpp"
41 #include "runtime/vmThread.hpp"
42 #include "runtime/vm_operations.hpp"
43 #include "services/heapDumper.hpp"
44 #include "services/threadService.hpp"
45 #include "utilities/macros.hpp"
46 #include "utilities/ostream.hpp"
47 #if INCLUDE_ALL_GCS
48 #include "gc/parallel/parallelScavengeHeap.hpp"
49 #endif // INCLUDE_ALL_GCS
50
51 /*
52 * HPROF binary format - description copied from:
53 * src/share/demo/jvmti/hprof/hprof_io.c
54 *
55 *
56 * header "JAVA PROFILE 1.0.1" or "JAVA PROFILE 1.0.2"
57 * (0-terminated)
58 *
59 * u4 size of identifiers. Identifiers are used to represent
60 * UTF8 strings, objects, stack traces, etc. They usually
61 * have the same size as host pointers. For example, on
62 * Solaris and Win32, the size is 4.
63 * u4 high word
64 * u4 low word number of milliseconds since 0:00 GMT, 1/1/70
65 * [record]* a sequence of records.
66 *
67 *
68 * Record format:
|