author | mgronlun |
Mon, 25 Nov 2019 18:38:01 +0100 | |
changeset 59259 | 127ca611f19b |
parent 55565 | 51b28beb53fd |
permissions | -rw-r--r-- |
50113 | 1 |
/* |
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
50113
diff
changeset
|
2 |
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. |
50113 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
22 |
* |
|
23 |
*/ |
|
24 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
50113
diff
changeset
|
25 |
#ifndef SHARE_JFR_RECORDER_JFRRECORDER_HPP |
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
50113
diff
changeset
|
26 |
#define SHARE_JFR_RECORDER_JFRRECORDER_HPP |
50113 | 27 |
|
28 |
#include "jfr/utilities/jfrAllocation.hpp" |
|
29 |
||
30 |
class JavaThread; |
|
31 |
class Thread; |
|
32 |
||
33 |
// |
|
34 |
// Represents the singleton instance of Flight Recorder. |
|
35 |
// Lifecycle management of recorder components. |
|
36 |
// |
|
37 |
class JfrRecorder : public JfrCHeapObj { |
|
38 |
friend class Jfr; |
|
39 |
friend void recorderthread_entry(JavaThread*, Thread*); |
|
40 |
private: |
|
59259
127ca611f19b
8233197: Invert JvmtiExport::post_vm_initialized() and Jfr:on_vm_start() start-up order for correct option parsing
mgronlun
parents:
55565
diff
changeset
|
41 |
static bool on_create_vm_1(); |
127ca611f19b
8233197: Invert JvmtiExport::post_vm_initialized() and Jfr:on_vm_start() start-up order for correct option parsing
mgronlun
parents:
55565
diff
changeset
|
42 |
static bool on_create_vm_2(); |
127ca611f19b
8233197: Invert JvmtiExport::post_vm_initialized() and Jfr:on_vm_start() start-up order for correct option parsing
mgronlun
parents:
55565
diff
changeset
|
43 |
static bool on_create_vm_3(); |
50113 | 44 |
static bool create_checkpoint_manager(); |
45 |
static bool create_chunk_repository(); |
|
55565
51b28beb53fd
8227011: Starting a JFR recording in response to JVMTI VMInit and / or Java agent premain corrupts memory
mgronlun
parents:
53244
diff
changeset
|
46 |
static bool create_java_event_writer(); |
50113 | 47 |
static bool create_jvmti_agent(); |
48 |
static bool create_os_interface(); |
|
49 |
static bool create_post_box(); |
|
50 |
static bool create_recorder_thread(); |
|
51 |
static bool create_stacktrace_repository(); |
|
52 |
static bool create_storage(); |
|
53 |
static bool create_stringpool(); |
|
54 |
static bool create_thread_sampling(); |
|
55 |
static bool create_components(); |
|
56 |
static void destroy_components(); |
|
57 |
static void on_recorder_thread_exit(); |
|
58 |
||
59 |
public: |
|
60 |
static bool is_enabled(); |
|
61 |
static bool is_disabled(); |
|
62 |
static bool create(bool simulate_failure); |
|
63 |
static bool is_created(); |
|
64 |
static void destroy(); |
|
65 |
static void start_recording(); |
|
66 |
static bool is_recording(); |
|
67 |
static void stop_recording(); |
|
68 |
}; |
|
69 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
50113
diff
changeset
|
70 |
#endif // SHARE_JFR_RECORDER_JFRRECORDER_HPP |