equal
deleted
inserted
replaced
53 ~JfrRepository(); |
53 ~JfrRepository(); |
54 |
54 |
55 bool set_path(const char* path); |
55 bool set_path(const char* path); |
56 void set_chunk_path(const char* path); |
56 void set_chunk_path(const char* path); |
57 bool open_chunk(bool vm_error = false); |
57 bool open_chunk(bool vm_error = false); |
58 size_t close_chunk(int64_t metadata_offset); |
58 size_t close_chunk(); |
|
59 size_t flush_chunk(); |
59 void on_vm_error(); |
60 void on_vm_error(); |
|
61 |
60 static void notify_on_new_chunk_path(); |
62 static void notify_on_new_chunk_path(); |
61 static JfrChunkWriter& chunkwriter(); |
63 static JfrChunkWriter& chunkwriter(); |
62 |
64 |
63 static JfrRepository& instance(); |
65 static JfrRepository& instance(); |
64 static JfrRepository* create(JfrPostBox& post_box); |
66 static JfrRepository* create(JfrPostBox& post_box); |
66 static void destroy(); |
68 static void destroy(); |
67 |
69 |
68 public: |
70 public: |
69 static void set_path(jstring location, JavaThread* jt); |
71 static void set_path(jstring location, JavaThread* jt); |
70 static void set_chunk_path(jstring path, 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(); |
71 }; |
75 }; |
72 |
76 |
73 #endif // SHARE_JFR_RECORDER_REPOSITORY_JFRREPOSITORY_HPP |
77 #endif // SHARE_JFR_RECORDER_REPOSITORY_JFRREPOSITORY_HPP |