src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordedStackTrace.java
branchJEP-349-branch
changeset 57460 bcbc53560c77
parent 50113 caf115bb98ad
child 58112 e7754025004b
equal deleted inserted replaced
57459:df39f8d8f4d6 57460:bcbc53560c77
    27 
    27 
    28 import java.util.Arrays;
    28 import java.util.Arrays;
    29 import java.util.Collections;
    29 import java.util.Collections;
    30 import java.util.List;
    30 import java.util.List;
    31 
    31 
    32 import jdk.jfr.ValueDescriptor;
       
    33 import jdk.jfr.internal.Type;
    32 import jdk.jfr.internal.Type;
    34 
    33 
    35 /**
    34 /**
    36  * A recorded stack trace.
    35  * A recorded stack trace.
    37  *
    36  *
    38  * @since 9
    37  * @since 9
    39  */
    38  */
    40 public final class RecordedStackTrace extends RecordedObject {
    39 public final class RecordedStackTrace extends RecordedObject {
    41 
    40 
    42     static ObjectFactory<RecordedStackTrace> createFactory(Type type, TimeConverter timeConverter) {
    41     static ObjectFactory<RecordedStackTrace> createFactory(Type type, TimeConverter timeConverter) {
    43         return new ObjectFactory<RecordedStackTrace>(type) {
    42         return new ObjectFactory<RecordedStackTrace>(type, timeConverter) {
    44             @Override
    43             @Override
    45             RecordedStackTrace createTyped(List<ValueDescriptor> desc, long id, Object[] object) {
    44             RecordedStackTrace createTyped(ObjectContext objectContext, long id, Object[] values) {
    46                 return new RecordedStackTrace(desc, object, timeConverter);
    45                 return new RecordedStackTrace(objectContext, values);
    47             }
    46             }
    48         };
    47         };
    49     }
    48     }
    50 
    49 
    51     private RecordedStackTrace(List<ValueDescriptor> desc, Object[] values, TimeConverter timeConverter) {
    50     private RecordedStackTrace(ObjectContext objectContext, Object[] values) {
    52         super(desc, values, timeConverter);
    51         super(objectContext, values);
    53     }
    52     }
    54 
    53 
    55     /**
    54     /**
    56      * Returns the frames in the stack trace.
    55      * Returns the frames in the stack trace.
    57      *
    56      *