hotspot/src/share/vm/trace/traceEventClasses.xsl
changeset 46994 7663ce98384b
parent 42643 f4b39e85487d
equal deleted inserted replaced
46992:95000145dd81 46994:7663ce98384b
     1 <?xml version="1.0" encoding="utf-8"?>
     1 <?xml version="1.0" encoding="utf-8"?>
     2 <!--
     2 <!--
     3  Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
     3  Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
     4  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5 
     5 
     6  This code is free software; you can redistribute it and/or modify it
     6  This code is free software; you can redistribute it and/or modify it
     7  under the terms of the GNU General Public License version 2 only, as
     7  under the terms of the GNU General Public License version 2 only, as
     8  published by the Free Software Foundation.
     8  published by the Free Software Foundation.
    35 // On purpose outside the INCLUDE_TRACE
    35 // On purpose outside the INCLUDE_TRACE
    36 // Some parts of traceEvent.hpp are used outside of
    36 // Some parts of traceEvent.hpp are used outside of
    37 // INCLUDE_TRACE
    37 // INCLUDE_TRACE
    38 
    38 
    39 #include "tracefiles/traceTypes.hpp"
    39 #include "tracefiles/traceTypes.hpp"
       
    40 #include "utilities/macros.hpp"
       
    41 
       
    42 #if INCLUDE_TRACE
    40 #include "trace/traceEvent.hpp"
    43 #include "trace/traceEvent.hpp"
    41 #include "utilities/macros.hpp"
       
    42 #include "utilities/ticks.hpp"
       
    43 #if INCLUDE_TRACE
       
    44 #include "trace/traceStream.hpp"
    44 #include "trace/traceStream.hpp"
    45 #include "utilities/ostream.hpp"
    45 #include "utilities/ostream.hpp"
    46 
    46 
    47   <xsl:apply-templates select="trace/events/struct" mode="trace"/>
    47   <xsl:apply-templates select="trace/events/struct" mode="trace"/>
    48   <xsl:apply-templates select="trace/events/event" mode="trace"/>
    48   <xsl:apply-templates select="trace/events/event" mode="trace"/>
    55   void set_starttime(const Ticks&amp; ignore) {}
    55   void set_starttime(const Ticks&amp; ignore) {}
    56   void set_endtime(const Ticks&amp; ignore) {}
    56   void set_endtime(const Ticks&amp; ignore) {}
    57   bool should_commit() const { return false; }
    57   bool should_commit() const { return false; }
    58   static bool is_enabled() { return false; }
    58   static bool is_enabled() { return false; }
    59   void commit() {}
    59   void commit() {}
    60   void cancel() {}
       
    61 };
    60 };
    62 
    61 
    63   <xsl:apply-templates select="trace/events/struct" mode="empty"/>
    62   <xsl:apply-templates select="trace/events/struct" mode="empty"/>
    64   <xsl:apply-templates select="trace/events/event" mode="empty"/>
    63   <xsl:apply-templates select="trace/events/event" mode="empty"/>
    65 
    64