Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getPrettyUpTime (0.53 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/health/DaemonHealthStatsTest.groovy

            gcInfo.getCollectionTime() >> 25
            gcMonitor.getHeapStats() >> new GarbageCollectionStats(1.0, 103, 1024, 5)
            gcMonitor.getNonHeapStats() >> new GarbageCollectionStats(0, 1024, 2048, 5)
            runningStats.getPrettyUpTime() >> "3 mins"
            runningStats.getAllBuildsTime() >> 1000
    
            then:
            healthStats.healthInfo == "[uptime: 3 mins, performance: 98%, GC rate: 1.00/s, heap usage: 10% of 1 KiB, non-heap usage: 50% of 2 KiB]"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/stats/DaemonRunningStats.java

        private int buildCount;
        private long allBuildsTime;
    
        public int getBuildCount() {
            return buildCount;
        }
    
        public String getPrettyUpTime() {
            return daemonTimer.getElapsed();
        }
    
        public long getStartTime() {
            return startTime;
        }
    
        public long getAllBuildsTime() {
            return allBuildsTime;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:23:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/DaemonHealthStats.java

         * Elegant description of daemon's health
         */
        public String getHealthInfo() {
            StringBuilder message = new StringBuilder();
            message.append(format("[uptime: %s, performance: %s%%", runningStats.getPrettyUpTime(), getCurrentPerformance()));
    
            GarbageCollectionStats heapStats = gcMonitor.getHeapStats();
            if (heapStats.isValid()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:23:18 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top