src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecorder.java
branchJEP-349-branch
changeset 58154 060d9d139109
parent 57752 7072cf06887a
parent 55256 3b22c7e00573
equal deleted inserted replaced
58101:84b0544833c4 58154:060d9d139109
   332     }
   332     }
   333 
   333 
   334     private void dumpMemoryToDestination(PlatformRecording recording)  {
   334     private void dumpMemoryToDestination(PlatformRecording recording)  {
   335         WriteableUserPath dest = recording.getDestination();
   335         WriteableUserPath dest = recording.getDestination();
   336         if (dest != null) {
   336         if (dest != null) {
   337             MetadataRepository.getInstance().setOutput(dest.getText());
   337             MetadataRepository.getInstance().setOutput(dest.getRealPathText());
   338             recording.clearDestination();
   338             recording.clearDestination();
   339         }
   339         }
   340     }
   340     }
   341     private void disableEvents() {
   341     private void disableEvents() {
   342         MetadataRepository.getInstance().disableEvents();
   342         MetadataRepository.getInstance().disableEvents();
   435             for (PlatformRecording r : getRecordings()) {
   435             for (PlatformRecording r : getRecordings()) {
   436                 if (r.getState() == RecordingState.RUNNING && r.shouldWriteMetadataEvent()) {
   436                 if (r.getState() == RecordingState.RUNNING && r.shouldWriteMetadataEvent()) {
   437                     event.id = r.getId();
   437                     event.id = r.getId();
   438                     event.name = r.getName();
   438                     event.name = r.getName();
   439                     WriteableUserPath p = r.getDestination();
   439                     WriteableUserPath p = r.getDestination();
   440                     event.destination = p == null ? null : p.getText();
   440                     event.destination = p == null ? null : p.getRealPathText();
   441                     Duration d = r.getDuration();
   441                     Duration d = r.getDuration();
   442                     event.recordingDuration = d == null ? Long.MAX_VALUE : d.toMillis();
   442                     event.recordingDuration = d == null ? Long.MAX_VALUE : d.toMillis();
   443                     Duration age = r.getMaxAge();
   443                     Duration age = r.getMaxAge();
   444                     event.maxAge = age == null ? Long.MAX_VALUE : age.toMillis();
   444                     event.maxAge = age == null ? Long.MAX_VALUE : age.toMillis();
   445                     Long size = r.getMaxSize();
   445                     Long size = r.getMaxSize();