src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecorder.java
changeset 55256 3b22c7e00573
parent 53014 339d2fbe8675
child 58154 060d9d139109
child 58863 c16ac7a2eba4
equal deleted inserted replaced
55255:d49b72808414 55256:3b22c7e00573
   313     }
   313     }
   314 
   314 
   315     private void dumpMemoryToDestination(PlatformRecording recording)  {
   315     private void dumpMemoryToDestination(PlatformRecording recording)  {
   316         WriteableUserPath dest = recording.getDestination();
   316         WriteableUserPath dest = recording.getDestination();
   317         if (dest != null) {
   317         if (dest != null) {
   318             MetadataRepository.getInstance().setOutput(dest.getText());
   318             MetadataRepository.getInstance().setOutput(dest.getRealPathText());
   319             recording.clearDestination();
   319             recording.clearDestination();
   320         }
   320         }
   321     }
   321     }
   322     private void disableEvents() {
   322     private void disableEvents() {
   323         MetadataRepository.getInstance().disableEvents();
   323         MetadataRepository.getInstance().disableEvents();
   404                 if (r.getState() == RecordingState.RUNNING && r.shouldWriteMetadataEvent()) {
   404                 if (r.getState() == RecordingState.RUNNING && r.shouldWriteMetadataEvent()) {
   405                     ActiveRecordingEvent event = new ActiveRecordingEvent();
   405                     ActiveRecordingEvent event = new ActiveRecordingEvent();
   406                     event.id = r.getId();
   406                     event.id = r.getId();
   407                     event.name = r.getName();
   407                     event.name = r.getName();
   408                     WriteableUserPath p = r.getDestination();
   408                     WriteableUserPath p = r.getDestination();
   409                     event.destination = p == null ? null : p.getText();
   409                     event.destination = p == null ? null : p.getRealPathText();
   410                     Duration d = r.getDuration();
   410                     Duration d = r.getDuration();
   411                     event.recordingDuration = d == null ? Long.MAX_VALUE : d.toMillis();
   411                     event.recordingDuration = d == null ? Long.MAX_VALUE : d.toMillis();
   412                     Duration age = r.getMaxAge();
   412                     Duration age = r.getMaxAge();
   413                     event.maxAge = age == null ? Long.MAX_VALUE : age.toMillis();
   413                     event.maxAge = age == null ? Long.MAX_VALUE : age.toMillis();
   414                     Long size = r.getMaxSize();
   414                     Long size = r.getMaxSize();