src/share/vm/trace/traceTypes.xsl

Print this page
rev 5685 : 8028128: Add a type safe alternative for working with counter based data
Reviewed-by:


  15 
  16  You should have received a copy of the GNU General Public License version
  17  2 along with this work; if not, write to the Free Software Foundation,
  18  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 
  20  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  or visit www.oracle.com if you need additional information or have any
  22  questions.
  23 -->
  24 
  25 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  26 <xsl:import href="xsl_util.xsl"/>
  27 <xsl:output method="text" indent="no" omit-xml-declaration="yes"/>
  28 
  29 <xsl:template match="/">
  30   <xsl:call-template name="file-header"/>
  31 
  32 #ifndef TRACEFILES_JFRTYPES_HPP
  33 #define TRACEFILES_JFRTYPES_HPP
  34 

  35 #include "trace/traceDataTypes.hpp"
  36 #include "utilities/globalDefinitions.hpp"
  37 #include "oops/symbol.hpp"

  38 
  39 enum JVMContentType {
  40   _not_a_content_type = (JVM_CONTENT_TYPES_START - 1),
  41   
  42 <xsl:for-each select="trace/types/content_types/content_type[@jvm_type]">
  43   <xsl:value-of select="concat('  CONTENT_TYPE_', @jvm_type, ',',  $newline)"/>
  44 </xsl:for-each>
  45   NUM_JVM_CONTENT_TYPES
  46 };
  47 
  48 
  49 enum JVMEventRelations {
  50   JVM_REL_NOT_AVAILABLE = 0,
  51   
  52 <xsl:for-each select="trace/relation_decls/relation_decl">
  53   <xsl:value-of select="concat('  JVM_REL_', @id, ',', $newline)"/>
  54 </xsl:for-each>
  55   NUM_EVENT_RELATIONS
  56 };
  57 


  15 
  16  You should have received a copy of the GNU General Public License version
  17  2 along with this work; if not, write to the Free Software Foundation,
  18  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 
  20  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  or visit www.oracle.com if you need additional information or have any
  22  questions.
  23 -->
  24 
  25 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  26 <xsl:import href="xsl_util.xsl"/>
  27 <xsl:output method="text" indent="no" omit-xml-declaration="yes"/>
  28 
  29 <xsl:template match="/">
  30   <xsl:call-template name="file-header"/>
  31 
  32 #ifndef TRACEFILES_JFRTYPES_HPP
  33 #define TRACEFILES_JFRTYPES_HPP
  34 
  35 #include "oops/symbol.hpp"
  36 #include "trace/traceDataTypes.hpp"
  37 #include "utilities/globalDefinitions.hpp"
  38 #include "utilities/ticks.hpp"
  39 
  40 
  41 enum JVMContentType {
  42   _not_a_content_type = (JVM_CONTENT_TYPES_START - 1),
  43   
  44 <xsl:for-each select="trace/types/content_types/content_type[@jvm_type]">
  45   <xsl:value-of select="concat('  CONTENT_TYPE_', @jvm_type, ',',  $newline)"/>
  46 </xsl:for-each>
  47   NUM_JVM_CONTENT_TYPES
  48 };
  49 
  50 
  51 enum JVMEventRelations {
  52   JVM_REL_NOT_AVAILABLE = 0,
  53   
  54 <xsl:for-each select="trace/relation_decls/relation_decl">
  55   <xsl:value-of select="concat('  JVM_REL_', @id, ',', $newline)"/>
  56 </xsl:for-each>
  57   NUM_EVENT_RELATIONS
  58 };
  59