Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 482 for startTimer (0.98 sec)

  1. pkg/util/procfs/procfs_linux_test.go

    	assert.Empty(b, err)
    
    	for i := 0; i < b.N; i++ {
    		pids := getPids(re)
    
    		b.StopTimer()
    		assert.NotZero(b, pids)
    		assert.Contains(b, pids, os.Getpid())
    		b.StartTimer()
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiIntegrationTest.groovy

            def startMarkerFile = projectDir.file("start.marker")
            def foundStartMarker = startMarkerFile.exists()
    
            CountdownTimer startTimer = Time.startCountdownTimer(startTimeoutMs)
            while (handle.running && !foundStartMarker) {
                if (startTimer.hasExpired()) {
                    throw new Exception("timeout waiting for start marker")
                } else {
                    sleep retryIntervalMs
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  3. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/WorkerDaemonStarter.java

        }
    
        public WorkerDaemonClient startDaemon(DaemonForkOptions forkOptions) {
            LOG.debug("Starting Gradle worker daemon with fork options {}.", forkOptions);
            Timer clock = Time.startTimer();
            MultiRequestWorkerProcessBuilder<TransportableActionExecutionSpec, DefaultWorkResult> builder = workerDaemonProcessFactory.multiRequestWorker(WorkerDaemonServer.class);
            builder.setBaseName("Gradle Worker Daemon");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 14:39:33 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. src/testing/benchmark.go

    	netAllocs uint64
    	netBytes  uint64
    	// Extra metrics collected by ReportMetric.
    	extra map[string]float64
    }
    
    // StartTimer starts timing a test. This function is called automatically
    // before a benchmark starts, but it can also be used to resume timing after
    // a call to [B.StopTimer].
    func (b *B) StartTimer() {
    	if !b.timerOn {
    		runtime.ReadMemStats(&memStats)
    		b.startAllocs = memStats.Mallocs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/SkipEmptyIncrementalWorkStep.java

                .map(PreviousExecutionState::getOutputFilesProducedByWork)
                .orElse(ImmutableSortedMap.of());
    
            ExecutionOutcome skipOutcome;
            Timer timer = Time.startTimer();
            String executionReason = null;
            if (outputFilesAfterPreviousExecution.isEmpty()) {
                LOGGER.info("Skipping {} as it has no source files and no previous output files.", work.getDisplayName());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:30 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. platforms/core-configuration/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/KotlinBuildScriptModelBuilder.kt

    import org.gradle.internal.classpath.ClassPath
    import org.gradle.internal.classpath.DefaultClassPath
    import org.gradle.internal.resource.TextFileResourceLoader
    import org.gradle.internal.time.Time.startTimer
    import org.gradle.kotlin.dsl.*
    import org.gradle.kotlin.dsl.accessors.AccessorsClassPath
    import org.gradle.kotlin.dsl.accessors.ProjectAccessorsClassPathGenerator
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 11:06:08 UTC 2024
    - 17.8K bytes
    - Viewed (0)
Back to top