Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for recordStats (0.06 sec)

  1. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

      public void testParse_recordStats() {
        CacheBuilderSpec spec = parse("recordStats");
        assertTrue(spec.recordStats);
        assertCacheBuilderEquivalence(CacheBuilder.newBuilder().recordStats(), CacheBuilder.from(spec));
      }
    
      public void testParse_recordStatsValueSpecified() {
        assertThrows(IllegalArgumentException.class, () -> parse("recordStats=True"));
      }
    
      public void testParse_recordStatsRepeated() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertThat(popLoggedThrowable()).isInstanceOf(InvalidCacheLoadException.class);
      }
    
      public void testLoad() throws ExecutionException {
        LoadingCache<Object, Object> cache =
            CacheBuilder.newBuilder().recordStats().build(identityLoader());
        CacheStats stats = cache.stats();
        assertEquals(0, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

      public void testParse_recordStats() {
        CacheBuilderSpec spec = parse("recordStats");
        assertTrue(spec.recordStats);
        assertCacheBuilderEquivalence(CacheBuilder.newBuilder().recordStats(), CacheBuilder.from(spec));
      }
    
      public void testParse_recordStatsValueSpecified() {
        assertThrows(IllegalArgumentException.class, () -> parse("recordStats=True"));
      }
    
      public void testParse_recordStatsRepeated() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/cache/MapMakerComparisonBenchmark.java

      // Non-loading versions:
      private final Map<Object, Object> map = new MapMaker().makeMap(); // Returns ConcurrentHashMap
      private final Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build();
      private final Cache<Object, Object> cacheNoStats = CacheBuilder.newBuilder().build();
    
      @BeforeExperiment
      void setUp() {
        map.put(TEST_KEY, TEST_VALUE);
        cache.put(TEST_KEY, TEST_VALUE);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 05 17:21:46 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheManualTest.java

    import junit.framework.TestCase;
    
    /** @author Charles Fry */
    public class CacheManualTest extends TestCase {
    
      public void testGetIfPresent() {
        Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build();
        CacheStats stats = cache.stats();
        assertEquals(0, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 5.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        return new LocalLoadingCache<>(builder, loader);
      }
    
      private CacheBuilder<Object, Object> createCacheBuilder() {
        return CacheBuilder.newBuilder().recordStats();
      }
    
      // constructor tests
    
      public void testComputingFunction() {
        CacheLoader<Object, Object> loader =
            new CacheLoader<Object, Object>() {
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        return new LocalLoadingCache<>(builder, loader);
      }
    
      private CacheBuilder<Object, Object> createCacheBuilder() {
        return CacheBuilder.newBuilder().recordStats();
      }
    
      // constructor tests
    
      public void testComputingFunction() {
        CacheLoader<Object, Object> loader =
            new CacheLoader<Object, Object>() {
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/Cache.java

       * lifetime of the cache.
       *
       * <p><b>Warning:</b> this cache may not be recording statistical data. For example, a cache
       * created using {@link CacheBuilder} only does so if the {@link CacheBuilder#recordStats} method
       * was called. If statistics are not being recorded, a {@code CacheStats} instance with zero for
       * all values is returned.
       *
       */
      CacheStats stats();
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Aug 07 02:38:22 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/Cache.java

       * lifetime of the cache.
       *
       * <p><b>Warning:</b> this cache may not be recording statistical data. For example, a cache
       * created using {@link CacheBuilder} only does so if the {@link CacheBuilder#recordStats} method
       * was called. If statistics are not being recorded, a {@code CacheStats} instance with zero for
       * all values is returned.
       *
       */
      CacheStats stats();
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Aug 07 02:38:22 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            new Function<CacheBuilder<Object, Object>, LoadingCache<Object, Object>>() {
              @Override
              public LoadingCache<Object, Object> apply(CacheBuilder<Object, Object> builder) {
                return builder.recordStats().build(identityLoader());
              }
            });
      }
    
      private CacheBuilderFactory cacheFactory() {
        // This is trickier than expected. We plan to put 15 values in each of these (WARMUP_MIN to
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top