< prev index next >
src/hotspot/share/jfr/jfr.cpp
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -28,10 +28,11 @@
#include "jfr/periodic/sampling/jfrThreadSampler.hpp"
#include "jfr/recorder/jfrRecorder.hpp"
#include "jfr/recorder/checkpoint/jfrCheckpointManager.hpp"
#include "jfr/recorder/repository/jfrEmergencyDump.hpp"
#include "jfr/recorder/service/jfrOptionSet.hpp"
+#include "jfr/recorder/repository/jfrRepository.hpp"
#include "jfr/support/jfrThreadLocal.hpp"
#include "runtime/java.hpp"
bool Jfr::is_enabled() {
return JfrRecorder::is_enabled();
@@ -112,5 +113,19 @@
}
bool Jfr::on_start_flight_recording_option(const JavaVMOption** option, char* delimiter) {
return JfrOptionSet::parse_start_flight_recording_option(option, delimiter);
}
+
+void Jfr::setup_emergency_dump_file_descriptor() {
+ if (JfrRecorder::is_recording()) {
+ JfrEmergencyDump::setup_emergency_dump_file_descriptor();
+ }
+}
+
+const char* Jfr::saved_emergency_dump_path() {
+ return JfrEmergencyDump::saved_emergency_dump_path();
+}
+
+const char* Jfr::repository_path() {
+ return JfrRepository::path();
+}
< prev index next >