Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/src/hotspot/share/jfr/recorder/jfrEventSetting.inline.hpp
41149 views
1
/*
2
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
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
25
#ifndef SHARE_JFR_RECORDER_JFREVENTSETTING_INLINE_HPP
26
#define SHARE_JFR_RECORDER_JFREVENTSETTING_INLINE_HPP
27
28
#include "jfr/recorder/jfrEventSetting.hpp"
29
30
inline jfrNativeEventSetting& JfrEventSetting::setting(JfrEventId event_id) {
31
return _jvm_event_settings.bits[event_id];
32
}
33
34
inline bool JfrEventSetting::is_enabled(JfrEventId event_id) {
35
return 0 != setting(event_id).enabled;
36
}
37
38
inline bool JfrEventSetting::has_stacktrace(JfrEventId event_id) {
39
return 0 != setting(event_id).stacktrace;
40
}
41
42
inline jlong JfrEventSetting::threshold(JfrEventId event_id) {
43
return setting(event_id).threshold_ticks;
44
}
45
46
inline jlong JfrEventSetting::cutoff(JfrEventId event_id) {
47
return setting(event_id).cutoff_ticks;
48
}
49
50
inline bool JfrEventSetting::is_large(JfrEventId event_id) {
51
return setting(event_id).large != 0;
52
}
53
#endif // SHARE_JFR_RECORDER_JFREVENTSETTING_INLINE_HPP
54
55