Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for startTimer (0.59 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/stats/DaemonRunningStats.java

    import org.gradle.internal.time.Timer;
    
    @ServiceScope(Scope.Global.class)
    public class DaemonRunningStats {
    
        private final long startTime = System.currentTimeMillis();
        private final Timer daemonTimer = Time.startTimer();
        private final Timer currentBuildTimer = Time.startTimer();
    
        private int buildCount;
        private long allBuildsTime;
    
        public int getBuildCount() {
            return buildCount;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:23:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Time.java

         * For the gory details, see {@link MonotonicClock}.
         *
         * For timing activities, where correlation with the current time is not required, use {@link #startTimer()}.
         */
        public static Clock clock() {
            return CLOCK;
        }
    
        /**
         * Replacement for System.currentTimeMillis(), based on {@link #clock()}.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/passbm_test.go

    	b.ReportAllocs()
    	c := testConfig(b)
    	fun := c.Fun("entry", bg(size)...)
    	CheckFunc(fun.f)
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		fn(fun.f)
    		b.StopTimer()
    		CheckFunc(fun.f)
    		b.StartTimer()
    	}
    }
    
    // benchFnBlock runs passFunc across a function with b.N blocks.
    func benchFnBlock(b *testing.B, fn passFunc, bg blockGen) {
    	b.ReportAllocs()
    	c := testConfig(b)
    	fun := c.Fun("entry", bg(b.N)...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/compress/lzw/reader_test.go

    			buf1 := getInputBuf(buf, n)
    			runtime.GC()
    			b.StartTimer()
    			for i := 0; i < b.N; i++ {
    				io.Copy(io.Discard, NewReader(bytes.NewReader(buf1), LSB, 8))
    			}
    		})
    		b.Run(fmt.Sprint("1e-Reuse", e), func(b *testing.B) {
    			b.StopTimer()
    			b.SetBytes(int64(n))
    			buf1 := getInputBuf(buf, n)
    			runtime.GC()
    			b.StartTimer()
    			r := NewReader(bytes.NewReader(buf1), LSB, 8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:58 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/store/CachedStoreFactory.java

                T out = cache.getIfPresent(id);
                if (out != null) {
                    stats.readFromCache();
                    return out;
                }
                Timer timer = Time.startTimer();
                T value = createIfNotPresent.get();
                stats.readFromDisk(timer.getElapsedMillis());
                cache.put(id, value);
                return value;
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCleanupExecutor.java

                @Override
                public void run(BuildOperationContext context) {
                    DefaultCleanupProgressMonitor progressMonitor = new DefaultCleanupProgressMonitor(context);
                    Timer timer = Time.startTimer();
                    try {
                        cacheCleanupStrategy.getCleanupAction().clean(cleanableStore, progressMonitor);
                        FileUtils.touch(gcFile);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:53:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/Binary2JUnitXmlReportGenerator.java

            this.buildOperationRunner = buildOperationRunner;
            this.buildOperationExecutor = buildOperationExecutor;
        }
    
        public void generate() {
            Timer clock = Time.startTimer();
    
            buildOperationRunner.run(new RunnableBuildOperation() {
                @Override
                public void run(BuildOperationContext context) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 12:54:04 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. testing/integ-test/src/integTest/groovy/org/gradle/integtests/BuildSourceBuilderIntegrationTest.groovy

                import ${ProcessEnvironment.name}
                import ${Time.name}
                import ${Timer.name}
    
                def pid = gradle.services.get(ProcessEnvironment).maybeGetPid()
                def timer = Time.startTimer()
    
                def listener = new TraceListener(pid: pid, timer: timer)
                def manager = gradle.services.get(BuildOperationListenerManager)
                manager.addListener(listener)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/CaptureOutputsAfterExecutionStep.java

            return operation(
                operationContext -> {
                    Timer timer = Time.startTimer();
                    ImmutableSortedMap<String, FileSystemSnapshot> unfilteredOutputSnapshotsAfterExecution = outputSnapshotter.snapshotOutputs(work, context.getWorkspace());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:33 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/ExecuteStep.java

                        .map(PreviousExecutionState::getOutputFilesProducedByWork);
                }
            };
            UnitOfWork.WorkOutput workOutput;
    
            Timer timer = Time.startTimer();
            try {
                workOutput = work.execute(executionRequest);
            } catch (Throwable t) {
                return Result.failed(t, Duration.ofMillis(timer.getElapsedMillis()));
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top