Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for totalLoadTime (0.04 sec)

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

        assertThat(stats.missCount()).isEqualTo(2);
        assertThat(stats.missRate()).isEqualTo(2.0 / 3);
        assertThat(stats.loadCount()).isEqualTo(2);
        assertThat(stats.totalLoadTime()).isAtLeast(totalLoadTime);
        totalLoadTime = stats.totalLoadTime();
        assertThat(stats.averageLoadPenalty()).isAtLeast(0.0);
        assertThat(stats.evictionCount()).isEqualTo(0);
    
        Object three = new Object();
        cache.getUnchecked(three);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

        counter.recordLoadSuccess(Long.MAX_VALUE);
        counter.recordLoadSuccess(1);
        CacheStats stats = counter.snapshot();
        assertThat(stats.totalLoadTime()).isEqualTo(Long.MAX_VALUE);
      }
    
      public void testSimpleStatsIncrementBy() {
        long totalLoadTime = 0;
    
        SimpleStatsCounter counter1 = new SimpleStatsCounter();
        for (int i = 0; i < 11; i++) {
          counter1.recordHits(1);
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/CacheStats.java

       * or {@code loadExceptionCount} is incremented.
       */
      @SuppressWarnings("GoodTime") // should return a java.time.Duration
      public long totalLoadTime() {
        return totalLoadTime;
      }
    
      /**
       * Returns the average time spent loading new values. This is defined as {@code totalLoadTime /
       * (loadSuccessCount + loadExceptionCount)}.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/CacheStats.java

       * or {@code loadExceptionCount} is incremented.
       */
      @SuppressWarnings("GoodTime") // should return a java.time.Duration
      public long totalLoadTime() {
        return totalLoadTime;
      }
    
      /**
       * Returns the average time spent loading new values. This is defined as {@code totalLoadTime /
       * (loadSuccessCount + loadExceptionCount)}.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
Back to top