Fri, 10 Jul 2009 11:10:00 -0700
6857194: Add hotspot perf counters to aid class loading performance measurement
Summary: Add new jvmstat counters to measure detailed class loading time
Reviewed-by: acorn, kamg
duke@435 | 1 | <?xml version="1.0"?> |
duke@435 | 2 | <!-- |
duke@435 | 3 | Copyright 2002-2005 Sun Microsystems, Inc. All Rights Reserved. |
duke@435 | 4 | DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@435 | 5 | |
duke@435 | 6 | This code is free software; you can redistribute it and/or modify it |
duke@435 | 7 | under the terms of the GNU General Public License version 2 only, as |
duke@435 | 8 | published by the Free Software Foundation. |
duke@435 | 9 | |
duke@435 | 10 | This code is distributed in the hope that it will be useful, but WITHOUT |
duke@435 | 11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@435 | 12 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@435 | 13 | version 2 for more details (a copy is included in the LICENSE file that |
duke@435 | 14 | accompanied this code). |
duke@435 | 15 | |
duke@435 | 16 | You should have received a copy of the GNU General Public License version |
duke@435 | 17 | 2 along with this work; if not, write to the Free Software Foundation, |
duke@435 | 18 | Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@435 | 19 | |
duke@435 | 20 | Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
duke@435 | 21 | CA 95054 USA or visit www.sun.com if you need additional information or |
duke@435 | 22 | have any questions. |
duke@435 | 23 | |
duke@435 | 24 | --> |
duke@435 | 25 | |
duke@435 | 26 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
duke@435 | 27 | |
duke@435 | 28 | <xsl:import href="jvmtiLib.xsl"/> |
duke@435 | 29 | |
duke@435 | 30 | <xsl:output method="text" indent="no" omit-xml-declaration="yes"/> |
duke@435 | 31 | |
duke@435 | 32 | <xsl:template match="/"> |
duke@435 | 33 | <xsl:apply-templates select="specification"/> |
duke@435 | 34 | </xsl:template> |
duke@435 | 35 | |
duke@435 | 36 | <xsl:template match="specification"> |
duke@435 | 37 | <xsl:call-template name="includeHeader"/> |
duke@435 | 38 | <xsl:text> |
duke@435 | 39 | |
duke@435 | 40 | enum { |
duke@435 | 41 | JVMTI_INTERNAL_CAPABILITY_COUNT = </xsl:text> |
duke@435 | 42 | <xsl:value-of select="count(//capabilityfield)"/> |
duke@435 | 43 | <xsl:text> |
duke@435 | 44 | }; |
duke@435 | 45 | |
duke@435 | 46 | |
duke@435 | 47 | class JvmtiEnv : public JvmtiEnvBase { |
duke@435 | 48 | |
duke@435 | 49 | private: |
duke@435 | 50 | |
duke@435 | 51 | JvmtiEnv(); |
duke@435 | 52 | ~JvmtiEnv(); |
duke@435 | 53 | |
duke@435 | 54 | public: |
duke@435 | 55 | |
duke@435 | 56 | static JvmtiEnv* create_a_jvmti(); |
duke@435 | 57 | |
duke@435 | 58 | </xsl:text> |
duke@435 | 59 | <xsl:apply-templates select="functionsection"/> |
duke@435 | 60 | <xsl:text> |
duke@435 | 61 | }; |
duke@435 | 62 | </xsl:text> |
duke@435 | 63 | </xsl:template> |
duke@435 | 64 | |
duke@435 | 65 | <xsl:template match="functionsection"> |
duke@435 | 66 | <xsl:apply-templates select="category"/> |
duke@435 | 67 | </xsl:template> |
duke@435 | 68 | |
duke@435 | 69 | <xsl:template match="category"> |
duke@435 | 70 | <xsl:text> |
duke@435 | 71 | // </xsl:text><xsl:value-of select="@label"/><xsl:text> functions |
duke@435 | 72 | </xsl:text> |
duke@435 | 73 | <xsl:apply-templates select="function[not(contains(@impl,'unimpl'))]"/> |
duke@435 | 74 | </xsl:template> |
duke@435 | 75 | |
duke@435 | 76 | <xsl:template match="function"> |
duke@435 | 77 | <xsl:text> jvmtiError </xsl:text> |
duke@435 | 78 | <xsl:if test="count(@hide)=1"> |
duke@435 | 79 | <xsl:value-of select="@hide"/> |
duke@435 | 80 | </xsl:if> |
duke@435 | 81 | <xsl:value-of select="@id"/> |
duke@435 | 82 | <xsl:text>(</xsl:text> |
duke@435 | 83 | <xsl:apply-templates select="parameters" mode="HotSpotSig"/> |
duke@435 | 84 | <xsl:text>); |
duke@435 | 85 | </xsl:text> |
duke@435 | 86 | </xsl:template> |
duke@435 | 87 | |
duke@435 | 88 | </xsl:stylesheet> |