< prev index next >

application/uitests/org.openjdk.jmc.test.jemmy/src/test/java/org/openjdk/jmc/test/jemmy/misc/wrappers/JfrUi.java

Print this page




  39 import org.openjdk.jmc.test.jemmy.TestHelper;
  40 import org.openjdk.jmc.test.jemmy.misc.base.wrappers.MCJemmyBase;
  41 import org.openjdk.jmc.test.jemmy.misc.helpers.EventSettingsData;
  42 import org.openjdk.jmc.test.jemmy.misc.wrappers.MCButton.Labels;
  43 import org.openjdk.jmc.test.jemmy.misc.wrappers.MCTable.TableRow;
  44 
  45 /**
  46  * The Jemmy wrapper for the Flight Recorder UI
  47  */
  48 public class JfrUi extends MCJemmyBase {
  49         public static final String END_TIME_COLUMN_HEADER = "End Time";
  50         public static final String SETTING_VALUE_COULMN_HEADER = "Setting Value";
  51         public static final String SETTING_NAME_COLUMN_HEADER = "Setting Name";
  52         public static final String SETTING_FOR_COLUMN_HEADER = "Setting For";
  53 
  54         /*
  55          * Members ======= List of tabs
  56          */
  57         public static enum Tabs {
  58                 JAVA_APPLICATION,

  59                 MEMORY,
  60                 LOCK_INSTANCES,
  61                 FILE_IO,
  62                 SOCKET_IO,
  63                 METHOD_PROFILING,
  64                 EXCEPTIONS,
  65                 THREAD_DUMPS,
  66                 JVM_INTERNALS,
  67                 GARBAGE_COLLECTIONS,
  68                 GC_CONFIG,
  69                 COMPILATIONS,
  70                 CODE_CACHE,
  71                 CLASS_LOADING,
  72                 VM_OPERATIONS,
  73                 ALLOCATIONS,
  74                 ENVIRONMENT,
  75                 PROCESSES,
  76                 ENVIRONMENT_VARIABLES,
  77                 SYSTEM_PROPS,
  78                 RECORDING;


  80                 public static String[] text(Tabs tab) {
  81                         String[] tabText = {""};
  82                         switch (tab) {
  83                         case JVM_INTERNALS:
  84                                 tabText = new String[] {"JVM Internals"};
  85                                 break;
  86                         case SYSTEM_PROPS:
  87                                 tabText = new String[] {"Environment", "System Properties"};
  88                                 break;
  89                         case RECORDING:
  90                                 tabText = new String[] {"Environment", "Recording"};
  91                                 break;
  92                         case GARBAGE_COLLECTIONS:
  93                                 tabText = new String[] {"JVM Internals", "Garbage Collections"};
  94                                 break;
  95                         case GC_CONFIG:
  96                                 tabText = new String[] {"JVM Internals", "GC Configuration"};
  97                                 break;
  98                         case ALLOCATIONS:
  99                                 tabText = new String[] {"JVM Internals", "TLAB Allocations"};



 100                                 break;
 101                         case MEMORY:
 102                                 tabText = new String[] {"Java Application", "Memory"};
 103                                 break;
 104                         case METHOD_PROFILING:
 105                                 tabText = new String[] {"Java Application", "Method Profiling"};
 106                                 break;
 107                         case JAVA_APPLICATION:
 108                                 tabText = new String[] {"Java Application"};
 109                                 break;
 110                         case EXCEPTIONS:
 111                                 tabText = new String[] {"Java Application", "Exceptions"};
 112                                 break;
 113                         case COMPILATIONS:
 114                                 tabText = new String[] {"JVM Internals", "Compilations"};
 115                                 break;
 116                         case CODE_CACHE:
 117                                 tabText = new String[] {"JVM Internals", "Compilations", "Code Cache"};
 118                                 break;
 119                         case CLASS_LOADING:




  39 import org.openjdk.jmc.test.jemmy.TestHelper;
  40 import org.openjdk.jmc.test.jemmy.misc.base.wrappers.MCJemmyBase;
  41 import org.openjdk.jmc.test.jemmy.misc.helpers.EventSettingsData;
  42 import org.openjdk.jmc.test.jemmy.misc.wrappers.MCButton.Labels;
  43 import org.openjdk.jmc.test.jemmy.misc.wrappers.MCTable.TableRow;
  44 
  45 /**
  46  * The Jemmy wrapper for the Flight Recorder UI
  47  */
  48 public class JfrUi extends MCJemmyBase {
  49         public static final String END_TIME_COLUMN_HEADER = "End Time";
  50         public static final String SETTING_VALUE_COULMN_HEADER = "Setting Value";
  51         public static final String SETTING_NAME_COLUMN_HEADER = "Setting Name";
  52         public static final String SETTING_FOR_COLUMN_HEADER = "Setting For";
  53 
  54         /*
  55          * Members ======= List of tabs
  56          */
  57         public static enum Tabs {
  58                 JAVA_APPLICATION,
  59                 THREADS,
  60                 MEMORY,
  61                 LOCK_INSTANCES,
  62                 FILE_IO,
  63                 SOCKET_IO,
  64                 METHOD_PROFILING,
  65                 EXCEPTIONS,
  66                 THREAD_DUMPS,
  67                 JVM_INTERNALS,
  68                 GARBAGE_COLLECTIONS,
  69                 GC_CONFIG,
  70                 COMPILATIONS,
  71                 CODE_CACHE,
  72                 CLASS_LOADING,
  73                 VM_OPERATIONS,
  74                 ALLOCATIONS,
  75                 ENVIRONMENT,
  76                 PROCESSES,
  77                 ENVIRONMENT_VARIABLES,
  78                 SYSTEM_PROPS,
  79                 RECORDING;


  81                 public static String[] text(Tabs tab) {
  82                         String[] tabText = {""};
  83                         switch (tab) {
  84                         case JVM_INTERNALS:
  85                                 tabText = new String[] {"JVM Internals"};
  86                                 break;
  87                         case SYSTEM_PROPS:
  88                                 tabText = new String[] {"Environment", "System Properties"};
  89                                 break;
  90                         case RECORDING:
  91                                 tabText = new String[] {"Environment", "Recording"};
  92                                 break;
  93                         case GARBAGE_COLLECTIONS:
  94                                 tabText = new String[] {"JVM Internals", "Garbage Collections"};
  95                                 break;
  96                         case GC_CONFIG:
  97                                 tabText = new String[] {"JVM Internals", "GC Configuration"};
  98                                 break;
  99                         case ALLOCATIONS:
 100                                 tabText = new String[] {"JVM Internals", "TLAB Allocations"};
 101                                 break;
 102                         case THREADS:
 103                                 tabText = new String[] {"Java Application", "Threads"};
 104                                 break;
 105                         case MEMORY:
 106                                 tabText = new String[] {"Java Application", "Memory"};
 107                                 break;
 108                         case METHOD_PROFILING:
 109                                 tabText = new String[] {"Java Application", "Method Profiling"};
 110                                 break;
 111                         case JAVA_APPLICATION:
 112                                 tabText = new String[] {"Java Application"};
 113                                 break;
 114                         case EXCEPTIONS:
 115                                 tabText = new String[] {"Java Application", "Exceptions"};
 116                                 break;
 117                         case COMPILATIONS:
 118                                 tabText = new String[] {"JVM Internals", "Compilations"};
 119                                 break;
 120                         case CODE_CACHE:
 121                                 tabText = new String[] {"JVM Internals", "Compilations", "Code Cache"};
 122                                 break;
 123                         case CLASS_LOADING:


< prev index next >