Class WatchBench


  • public class WatchBench
    extends java.lang.Object
    • Constructor Detail

      • WatchBench

        public WatchBench()
    • Method Detail

      • testAddConcentrateWatch

        public void testAddConcentrateWatch​(WatchBench.IterationState state)
                                     throws java.lang.Exception
        Test concenrate watch case where the watcher watches all paths. The output of this test will be the average time used to add the watch to all paths.
        Throws:
        java.lang.Exception
      • testTriggerConcentrateWatch

        public void testTriggerConcentrateWatch​(WatchBench.InvocationState state)
                                         throws java.lang.Exception
        Test trigger watches in concenrate case. The output of this test is the time used to trigger those watches on all paths.
        Throws:
        java.lang.Exception
      • testAddSparseWatch

        public void testAddSparseWatch​(WatchBench.AddSparseWatchState state)
                                throws java.lang.Exception
        Test sparse watch case where only one watcher watches all paths, and only one path being watched by all watchers. The output of this test will be the average time used to add those sparse watches.
        Throws:
        java.lang.Exception
      • testTriggerSparseWatch

        public void testTriggerSparseWatch​(WatchBench.TriggerSparseWatchState state)
                                    throws java.lang.Exception
        Test trigger watches in sparse case. The output of this test is the time used to trigger those watches on all paths.
        Throws:
        java.lang.Exception