< prev index next >

src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecording.java

Print this page

        

*** 130,140 **** } if (duration != null) { options.add("duration=" + Utils.formatTimespan(duration, "")); } if (destination != null) { ! options.add("filename=" + destination.getRealPathText()); } String optionText = options.toString(); if (optionText.length() != 0) { optionText = "{" + optionText + "}"; } --- 130,140 ---- } if (duration != null) { options.add("duration=" + Utils.formatTimespan(duration, "")); } if (destination != null) { ! options.add("filename=" + destination.getText()); } String optionText = options.toString(); if (optionText.length() != 0) { optionText = "{" + optionText + "}"; }
*** 163,173 **** WriteableUserPath dest = getDestination(); if (dest != null) { try { dumpStopped(dest); ! Logger.log(LogTag.JFR, LogLevel.INFO, "Wrote recording \"" + getName() + "\" (" + getId() + ") to " + dest.getRealPathText()); notifyIfStateChanged(newState, oldState); close(); // remove if copied out } catch(IOException e) { // throw e; // BUG8925030 } --- 163,173 ---- WriteableUserPath dest = getDestination(); if (dest != null) { try { dumpStopped(dest); ! Logger.log(LogTag.JFR, LogLevel.INFO, "Wrote recording \"" + getName() + "\" (" + getId() + ") to " + dest.getText()); notifyIfStateChanged(newState, oldState); close(); // remove if copied out } catch(IOException e) { // throw e; // BUG8925030 }
*** 316,325 **** --- 316,326 ---- // Recording is RUNNING, create a clone PlatformRecording clone = recorder.newTemporaryRecording(); clone.setShouldWriteActiveRecordingEvent(false); clone.setName(getName()); + clone.setDestination(this.destination); clone.setToDisk(true); // We purposely don't clone settings here, since // a union a == a if (!isToDisk()) { // force memory contents to disk
< prev index next >