src/hotspot/share/jfr/recorder/checkpoint/jfrCheckpointWriter.hpp
branchJEP-349-branch
changeset 57882 562f598d303c
parent 57870 00860d9caf4d
child 57886 87f8a814310d
--- a/src/hotspot/share/jfr/recorder/checkpoint/jfrCheckpointWriter.hpp	Mon Aug 26 13:09:14 2019 +0200
+++ b/src/hotspot/share/jfr/recorder/checkpoint/jfrCheckpointWriter.hpp	Mon Aug 26 17:59:32 2019 +0200
@@ -60,6 +60,7 @@
   JfrTicks _time;
   int64_t _offset;
   u4 _count;
+  JfrCheckpointMode _mode;
   bool _header;
 
   u4 count() const;
@@ -67,10 +68,10 @@
   void increment();
   const u1* session_data(size_t* size, bool move = false, const JfrCheckpointContext* ctx = NULL);
   void release();
-  JfrCheckpointWriter(Thread* t, JfrBuffer* buffer);
+  JfrCheckpointWriter(Thread* t, JfrBuffer* buffer, JfrCheckpointMode mode = NORMAL);
  public:
-  JfrCheckpointWriter();
-  JfrCheckpointWriter(Thread* t, bool header = true);
+  JfrCheckpointWriter(JfrCheckpointMode mode = NORMAL);
+  JfrCheckpointWriter(Thread* t, bool header = true, JfrCheckpointMode mode = NORMAL);
   ~JfrCheckpointWriter();
   void write_type(JfrTypeId type_id);
   void write_count(u4 nof_entries);