Home
last modified time | relevance | path

Searched refs:stopwatch (Results 1 – 25 of 29) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/base/
DStopwatchTest.java38 private final Stopwatch stopwatch = new Stopwatch(ticker); field in StopwatchTest
52 assertFalse(stopwatch.isRunning()); in testInitialState()
53 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testInitialState()
57 assertSame(stopwatch, stopwatch.start()); in testStart()
58 assertTrue(stopwatch.isRunning()); in testStart()
62 stopwatch.start(); in testStart_whileRunning()
64 stopwatch.start(); in testStart_whileRunning()
68 assertTrue(stopwatch.isRunning()); in testStart_whileRunning()
72 stopwatch.start(); in testStop()
73 assertSame(stopwatch, stopwatch.stop()); in testStop()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DStopwatchTest.java37 private final Stopwatch stopwatch = new Stopwatch(ticker); field in StopwatchTest
51 assertFalse(stopwatch.isRunning()); in testInitialState()
52 assertEquals(0, stopwatch.elapsed(NANOSECONDS)); in testInitialState()
56 assertSame(stopwatch, stopwatch.start()); in testStart()
57 assertTrue(stopwatch.isRunning()); in testStart()
61 stopwatch.start(); in testStart_whileRunning()
63 stopwatch.start(); in testStart_whileRunning()
67 assertTrue(stopwatch.isRunning()); in testStart_whileRunning()
71 stopwatch.start(); in testStop()
72 assertSame(stopwatch, stopwatch.stop()); in testStop()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DRateLimiterTest.java51 private final FakeStopwatch stopwatch = new FakeStopwatch(); field in RateLimiterTest
54 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0); in testSimple()
118 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0); in testSimpleWithWait()
120 stopwatch.sleepMillis(200); // U0.20, we are ready for the next request... in testSimpleWithWait()
127 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0); in testSimpleAcquireReturnValues()
129 stopwatch.sleepMillis(200); // U0.20, we are ready for the next request... in testSimpleAcquireReturnValues()
136 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0); in testSimpleAcquireEarliestAvailableIsInPast()
138 stopwatch.sleepMillis(400); in testSimpleAcquireEarliestAvailableIsInPast()
145 RateLimiter limiter = RateLimiter.create(stopwatch, 5.0); in testOneSecondBurst()
146 stopwatch.sleepMillis(1000); // max capacity reached in testOneSecondBurst()
[all …]
/external/guava/guava/src/com/google/common/util/concurrent/
DRateLimiter.java137 static RateLimiter create(SleepingStopwatch stopwatch, double permitsPerSecond) { in create() argument
138 RateLimiter rateLimiter = new SmoothBursty(stopwatch, 1.0 /* maxBurstSeconds */); in create()
174 SleepingStopwatch stopwatch, double permitsPerSecond, long warmupPeriod, TimeUnit unit) { in create() argument
175 RateLimiter rateLimiter = new SmoothWarmingUp(stopwatch, warmupPeriod, unit); in create()
184 private final SleepingStopwatch stopwatch; field in RateLimiter
202 RateLimiter(SleepingStopwatch stopwatch) { in RateLimiter() argument
203 this.stopwatch = checkNotNull(stopwatch); in RateLimiter()
229 doSetRate(permitsPerSecond, stopwatch.readMicros()); in setRate()
274 stopwatch.sleepMicrosUninterruptibly(microsToWait); in acquire()
287 return reserveAndGetWaitLength(permits, stopwatch.readMicros()); in reserve()
[all …]
DSmoothRateLimiter.java230 SmoothWarmingUp(SleepingStopwatch stopwatch, long warmupPeriod, TimeUnit timeUnit) { in SmoothWarmingUp() argument
231 super(stopwatch); in SmoothWarmingUp()
284 SmoothBursty(SleepingStopwatch stopwatch, double maxBurstSeconds) { in SmoothBursty() argument
285 super(stopwatch); in SmoothBursty()
332 private SmoothRateLimiter(SleepingStopwatch stopwatch) { in SmoothRateLimiter() argument
333 super(stopwatch); in SmoothRateLimiter()
DServiceManager.java483 Stopwatch stopwatch = startupTimers.get(service); in tryStartTiming() local
484 if (stopwatch == null) { in tryStartTiming()
644 Stopwatch stopwatch = startupTimers.get(service); in transitionService() local
645 if (stopwatch == null) { in transitionService()
647 stopwatch = Stopwatch.createStarted(); in transitionService()
648 startupTimers.put(service, stopwatch); in transitionService()
650 if (to.compareTo(RUNNING) >= 0 && stopwatch.isRunning()) { in transitionService()
652 stopwatch.stop(); in transitionService()
654 logger.log(Level.FINE, "Started {0} in {1}.", new Object[] {service, stopwatch}); in transitionService()
/external/guice/core/src/com/google/inject/internal/
DInternalInjectorCreator.java61 private final Stopwatch stopwatch = new Stopwatch(); field in InternalInjectorCreator
104 shells = shellBuilder.build(initializer, bindingData, stopwatch, errors); in build()
105 stopwatch.resetAndLog("Injector construction"); in build()
124 stopwatch.resetAndLog("Binding initialization"); in initializeStatically()
129 stopwatch.resetAndLog("Binding indexing"); in initializeStatically()
132 stopwatch.resetAndLog("Collecting injection requests"); in initializeStatically()
135 stopwatch.resetAndLog("Binding validation"); in initializeStatically()
138 stopwatch.resetAndLog("Static validation"); in initializeStatically()
141 stopwatch.resetAndLog("Instance member validation"); in initializeStatically()
147 stopwatch.resetAndLog("Provider verification"); in initializeStatically()
[all …]
DInjectorShell.java126 Stopwatch stopwatch, in build() argument
155 stopwatch.resetAndLog("Module execution"); in build()
161 stopwatch.resetAndLog("Interceptors creation"); in build()
171 stopwatch.resetAndLog("TypeListeners & ProvisionListener creation"); in build()
174 stopwatch.resetAndLog("Scopes creation"); in build()
177 stopwatch.resetAndLog("Converters creation"); in build()
188 stopwatch.resetAndLog("Binding creation"); in build()
191 stopwatch.resetAndLog("Module annotated method scanners creation"); in build()
200 injectorShells.addAll(builder.build(initializer, bindingData, stopwatch, errors)); in build()
202 stopwatch.resetAndLog("Private environment creation"); in build()
/external/libchrome/base/
Dtracked_objects_unittest.cc127 TaskStopwatch stopwatch; in TEST_F() local
193 TaskStopwatch stopwatch; in TEST_F() local
194 stopwatch.Start(); in TEST_F()
198 stopwatch.Stop(); in TEST_F()
200 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch); in TEST_F()
461 TaskStopwatch stopwatch; in TEST_F() local
462 stopwatch.Start(); in TEST_F()
464 stopwatch.Stop(); in TEST_F()
466 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch); in TEST_F()
490 TaskStopwatch stopwatch; in TEST_F() local
[all …]
Dtracked_objects.cc508 const TaskStopwatch& stopwatch) { in TallyADeath() argument
509 int32_t run_duration = stopwatch.RunDurationMs(); in TallyADeath()
552 const TaskStopwatch& stopwatch) { in TallyRunOnNamedThreadIfTracking() argument
559 ThreadData* current_thread_data = stopwatch.GetThreadData(); in TallyRunOnNamedThreadIfTracking()
568 TrackedTime start_of_run = stopwatch.StartTime(); in TallyRunOnNamedThreadIfTracking()
574 current_thread_data->TallyADeath(*births, queue_duration, stopwatch); in TallyRunOnNamedThreadIfTracking()
581 const TaskStopwatch& stopwatch) { in TallyRunOnWorkerThreadIfTracking() argument
597 ThreadData* current_thread_data = stopwatch.GetThreadData(); in TallyRunOnWorkerThreadIfTracking()
601 TrackedTime start_of_run = stopwatch.StartTime(); in TallyRunOnWorkerThreadIfTracking()
606 current_thread_data->TallyADeath(*births, queue_duration, stopwatch); in TallyRunOnWorkerThreadIfTracking()
[all …]
Drun_loop.cc54 tracked_objects::TaskStopwatch stopwatch; in Run() local
55 stopwatch.Start(); in Run()
57 stopwatch.Stop(); in Run()
Dtracked_objects.h496 const TaskStopwatch& stopwatch);
507 const TaskStopwatch& stopwatch);
512 const TaskStopwatch& stopwatch);
593 const TaskStopwatch& stopwatch);
/external/libchrome/base/debug/
Dtask_annotator.cc31 tracked_objects::TaskStopwatch stopwatch; in RunTask() local
32 stopwatch.Start(); in RunTask()
34 stopwatch.StartTime() - pending_task.EffectiveTimePosted(); in RunTask()
53 stopwatch.Stop(); in RunTask()
55 pending_task, stopwatch); in RunTask()
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DMacrobenchmarkWorker.java42 private final Stopwatch stopwatch; field in MacrobenchmarkWorker
50 this.stopwatch = Stopwatch.createUnstarted(ticker); in MacrobenchmarkWorker()
68 stopwatch.start(); in measure()
70 long nanos = stopwatch.stop().elapsed(NANOSECONDS); in measure()
71 stopwatch.reset(); in measure()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DConsoleOutput.java58 private final Stopwatch stopwatch; field in ConsoleOutput
61 ConsoleOutput(@Stdout PrintWriter stdout, int numberOfTrials, Stopwatch stopwatch) { in ConsoleOutput() argument
64 this.stopwatch = stopwatch; in ConsoleOutput()
145 stdout.format("Execution complete: %s.%n", stopwatch.stop()); in close()
DExperimentingCaliperRun.java152 Stopwatch stopwatch = Stopwatch.createStarted(); in run() local
157 ConsoleOutput output = new ConsoleOutput(stdout, totalTrials, stopwatch); in run()
/external/libchrome/base/threading/
Dworker_pool_posix.cc93 tracked_objects::TaskStopwatch stopwatch; in ThreadMain() local
94 stopwatch.Start(); in ThreadMain()
96 stopwatch.Stop(); in ThreadMain()
99 pending_task.birth_tally, pending_task.time_posted, stopwatch); in ThreadMain()
Dsequenced_worker_pool.cc833 tracked_objects::TaskStopwatch stopwatch; in ThreadLoop() local
834 stopwatch.Start(); in ThreadLoop()
836 stopwatch.Stop(); in ThreadLoop()
839 task, stopwatch); in ThreadLoop()
/external/guava/guava-tests/benchmark/com/google/common/base/
DStopwatchBenchmark.java32 @Benchmark long stopwatch(int reps) { in stopwatch() method in StopwatchBenchmark
/external/antlr/antlr-3.4/runtime/JavaScript/third/
Dantcontrib.properties21 stopwatch=net.sf.antcontrib.perf.StopWatchTask key
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java3471 final Stopwatch stopwatch = Stopwatch.createUnstarted(); field in LocalCache.LoadingValueReference
3523 stopwatch.start(); in loadFuture()
3552 return stopwatch.elapsed(NANOSECONDS); in elapsedNanos()
4020 Stopwatch stopwatch = Stopwatch.createStarted();
4042 globalStatsCounter.recordLoadException(stopwatch.elapsed(NANOSECONDS));
4047 globalStatsCounter.recordLoadException(stopwatch.elapsed(NANOSECONDS));
4051 stopwatch.stop();
4066 globalStatsCounter.recordLoadException(stopwatch.elapsed(NANOSECONDS));
4071 globalStatsCounter.recordLoadSuccess(stopwatch.elapsed(NANOSECONDS));
/external/blktrace/doc/
Dblktrace.tex395 -w \emph{seconds} & --stopwatch=\emph{seconds} & Sets run time to the number of seconds specified …
504 -w \emph{span} & --stopwatch=\emph{span} & Display traces for the \emph{span} specified -- w…
/external/testng/lib-supplied/
Dguice-2.0.jarMETA-INF/ META-INF/MANIFEST.MF LICENSE NOTICE org/ org/testng/ ...
/external/guice/lib/
Dguava-16.0.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/external/owasp/sanitizer/distrib/lib/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...

12