< prev index next >

src/hotspot/share/jfr/recorder/repository/jfrRepository.hpp

Print this page




  52   JfrRepository(JfrPostBox& post_box);
  53   ~JfrRepository();
  54 
  55   bool set_path(const char* path);
  56   void set_chunk_path(const char* path);
  57   bool open_chunk(bool vm_error = false);
  58   size_t close_chunk();
  59   size_t flush_chunk();
  60   void on_vm_error();
  61 
  62   static void notify_on_new_chunk_path();
  63   static JfrChunkWriter& chunkwriter();
  64 
  65   static JfrRepository& instance();
  66   static JfrRepository* create(JfrPostBox& post_box);
  67   bool initialize();
  68   static void destroy();
  69 
  70  public:
  71   static void set_path(jstring location, JavaThread* jt);

  72   static void set_chunk_path(jstring path, JavaThread* jt);
  73   static void flush(JavaThread* jt);
  74   static jlong current_chunk_start_nanos();
  75 };
  76 
  77 #endif // SHARE_JFR_RECORDER_REPOSITORY_JFRREPOSITORY_HPP


  52   JfrRepository(JfrPostBox& post_box);
  53   ~JfrRepository();
  54 
  55   bool set_path(const char* path);
  56   void set_chunk_path(const char* path);
  57   bool open_chunk(bool vm_error = false);
  58   size_t close_chunk();
  59   size_t flush_chunk();
  60   void on_vm_error();
  61 
  62   static void notify_on_new_chunk_path();
  63   static JfrChunkWriter& chunkwriter();
  64 
  65   static JfrRepository& instance();
  66   static JfrRepository* create(JfrPostBox& post_box);
  67   bool initialize();
  68   static void destroy();
  69 
  70  public:
  71   static void set_path(jstring location, JavaThread* jt);
  72   static const char* get_path();
  73   static void set_chunk_path(jstring path, JavaThread* jt);
  74   static void flush(JavaThread* jt);
  75   static jlong current_chunk_start_nanos();
  76 };
  77 
  78 #endif // SHARE_JFR_RECORDER_REPOSITORY_JFRREPOSITORY_HPP
< prev index next >