Searched refs:stopwatch (Results 1 - 25 of 31) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/base/
H A DStopwatchTest.java38 private final Stopwatch stopwatch = new Stopwatch(ticker); field in class:StopwatchTest
41 assertFalse(stopwatch.isRunning());
42 assertEquals(0, stopwatch.elapsedTime(NANOSECONDS));
46 assertSame(stopwatch, stopwatch.start());
47 assertTrue(stopwatch.isRunning());
51 stopwatch.start();
53 stopwatch.start();
57 assertTrue(stopwatch.isRunning());
61 stopwatch
[all...]
/external/lldb/test/benchmarks/disassembly/
H A DTestXcode41Vs42GDBDisassembly.py30 print "4.1 gdb benchmark:", self.stopwatch
31 self.gdb_41_avg = self.stopwatch.avg()
33 print "4.2 gdb benchmark:", self.stopwatch
34 self.gdb_42_avg = self.stopwatch.avg()
42 print "4.2 gdb benchmark:", self.stopwatch
43 self.gdb_42_avg = self.stopwatch.avg()
45 print "4.1 gdb benchmark:", self.stopwatch
46 self.gdb_41_avg = self.stopwatch.avg()
68 # Reset the stopwatch now.
69 self.stopwatch
[all...]
H A DTestDisassembly.py49 print "lldb benchmark:", self.stopwatch
51 print "gdb benchmark:", self.stopwatch
63 print "gdb benchmark:", self.stopwatch
65 print "lldb benchmark:", self.stopwatch
87 # Reset the stopwatch now.
88 self.stopwatch.reset()
90 with self.stopwatch:
103 self.lldb_avg = self.stopwatch.avg()
105 print "lldb disassembly benchmark:", str(self.stopwatch)
127 # Reset the stopwatch no
[all...]
H A DTestDoAttachThenDisassembly.py30 print "lldb disassembly benchmark:", self.stopwatch
63 # Reset the stopwatch now.
64 self.stopwatch.reset()
66 with self.stopwatch:
/external/lldb/test/benchmarks/turnaround/
H A DTestCompileRunToBreakpointTurnaround.py30 print "lldb turnaround benchmark:", self.stopwatch
32 print "gdb turnaround benchmark:", self.stopwatch
55 # Reset the stopwatch now.
56 self.stopwatch.reset()
63 with self.stopwatch:
72 self.lldb_avg = self.stopwatch.avg()
95 # Reset the stopwatch now.
96 self.stopwatch.reset()
103 with self.stopwatch:
114 self.gdb_avg = self.stopwatch
[all...]
/external/chromium_org/base/debug/
H A Dtask_annotator.cc32 tracked_objects::TaskStopwatch stopwatch; local
34 stopwatch.StartTime() - pending_task.EffectiveTimePosted();
64 stopwatch.Stop();
66 pending_task, stopwatch);
/external/lldb/test/benchmarks/expression/
H A DTestRepeatedExprs.py31 print "lldb benchmark:", self.stopwatch
33 print "gdb benchmark:", self.stopwatch
59 # Reset the stopwatch now.
60 self.stopwatch.reset()
62 with self.stopwatch:
76 self.lldb_avg = self.stopwatch.avg()
78 print "lldb expression benchmark:", str(self.stopwatch)
104 # Reset the stopwatch now.
105 self.stopwatch.reset()
107 with self.stopwatch
[all...]
H A DTestExpressionCmd.py29 print "lldb expr cmd benchmark:", self.stopwatch
38 # Reset the stopwatch now.
39 self.stopwatch.reset()
57 with self.stopwatch:
/external/chromium_org/base/threading/
H A Dworker_pool_win.cc32 tracked_objects::TaskStopwatch stopwatch; local
34 stopwatch.Stop();
41 stopwatch);
H A Dworker_pool_posix.cc99 tracked_objects::TaskStopwatch stopwatch; local
101 stopwatch.Stop();
105 stopwatch);
H A Dsequenced_worker_pool.cc759 tracked_objects::TaskStopwatch stopwatch; local
761 stopwatch.Stop();
764 task, stopwatch);
/external/lldb/test/benchmarks/stepping/
H A DTestRunHooksThenSteppings.py24 print "lldb stepping benchmark:", self.stopwatch
45 # Reset the stopwatch now.
46 self.stopwatch.reset()
48 with self.stopwatch:
H A DTestSteppingSpeed.py36 print "lldb stepping benchmark:", self.stopwatch
57 # Reset the stopwatch now.
58 self.stopwatch.reset()
60 with self.stopwatch:
/external/lldb/test/benchmarks/frame_variable/
H A DTestFrameVariableResponse.py33 print "lldb frame variable benchmark:", self.stopwatch
41 self.stopwatch.reset()
59 with self.stopwatch:
/external/lldb/test/benchmarks/startup/
H A DTestStartupDelays.py16 # The default self.stopwatch is for "create fresh target".
38 print "lldb startup delay (create fresh target) benchmark:", self.stopwatch
48 self.stopwatch.reset()
59 with self.stopwatch:
/external/chromium_org/mojo/system/
H A Dsimple_dispatcher_unittest.cc95 test::Stopwatch stopwatch; local
119 stopwatch.Start();
121 EXPECT_LT(stopwatch.Elapsed(), test::EpsilonTimeout());
135 stopwatch.Start();
137 EXPECT_LT(stopwatch.Elapsed(), test::EpsilonTimeout());
151 stopwatch.Start();
154 EXPECT_LT(stopwatch.Elapsed(), test::EpsilonTimeout());
167 stopwatch.Start();
169 EXPECT_LT(stopwatch.Elapsed(), test::EpsilonTimeout());
182 stopwatch
198 test::Stopwatch stopwatch; local
271 test::Stopwatch stopwatch; local
335 test::Stopwatch stopwatch; local
[all...]
H A Dwaiter_unittest.cc65 test::Stopwatch stopwatch; variable
70 stopwatch.Start();
72 elapsed = stopwatch.Elapsed();
213 test::Stopwatch stopwatch; local
220 stopwatch.Start();
222 elapsed = stopwatch.Elapsed();
227 stopwatch.Start();
230 elapsed = stopwatch.Elapsed();
236 stopwatch.Start();
239 elapsed = stopwatch
[all...]
H A Dmessage_pipe_dispatcher_unittest.cc33 test::Stopwatch stopwatch; local
75 stopwatch.Start();
78 EXPECT_LT(stopwatch.Elapsed(), test::EpsilonTimeout());
113 stopwatch.Start();
115 EXPECT_LT(stopwatch.Elapsed(), test::EpsilonTimeout());
126 stopwatch.Start();
129 base::TimeDelta elapsed = stopwatch.Elapsed();
357 test::Stopwatch stopwatch; local
389 stopwatch.Start();
400 elapsed = stopwatch
[all...]
/external/chromium_org/base/
H A Drun_loop.cc51 // Use task stopwatch to exclude the loop run time from the current task, if
53 tracked_objects::TaskStopwatch stopwatch;
55 stopwatch.Stop();
H A Dtracked_objects_unittest.cc192 TaskStopwatch stopwatch; local
196 stopwatch.Stop();
198 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
384 TaskStopwatch stopwatch; local
386 stopwatch.Stop();
388 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
424 TaskStopwatch stopwatch; local
426 stopwatch.Stop();
428 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
458 TaskStopwatch stopwatch; local
487 TaskStopwatch stopwatch; local
554 TaskStopwatch stopwatch; local
597 TaskStopwatch stopwatch; local
[all...]
H A Dtracked_objects.cc442 const TaskStopwatch& stopwatch) {
443 int32 run_duration = stopwatch.RunDurationMs();
495 const TaskStopwatch& stopwatch) {
505 ThreadData* current_thread_data = stopwatch.GetThreadData();
514 TrackedTime start_of_run = stopwatch.StartTime();
520 current_thread_data->TallyADeath(*birth, queue_duration, stopwatch);
527 const TaskStopwatch& stopwatch) {
546 ThreadData* current_thread_data = stopwatch.GetThreadData();
550 TrackedTime start_of_run = stopwatch.StartTime();
555 current_thread_data->TallyADeath(*birth, queue_duration, stopwatch);
440 TallyADeath(const Births& birth, int32 queue_duration, const TaskStopwatch& stopwatch) argument
493 TallyRunOnNamedThreadIfTracking( const base::TrackingInfo& completed_task, const TaskStopwatch& stopwatch) argument
524 TallyRunOnWorkerThreadIfTracking( const Births* birth, const TrackedTime& time_posted, const TaskStopwatch& stopwatch) argument
559 TallyRunInAScopedRegionIfTracking( const Births* birth, const TaskStopwatch& stopwatch) argument
[all...]
H A Dtracked_objects.h408 const TaskStopwatch& stopwatch);
420 const TaskStopwatch& stopwatch);
426 const TaskStopwatch& stopwatch);
526 const TaskStopwatch& stopwatch);
693 // Most recently started (i.e. most nested) stopwatch on the current thread,
708 // Starts the stopwatch.
712 // Stops stopwatch.
719 // and stopping this stopwatch, minus the wallclock durations of any other
728 // Time when the stopwatch was started.
741 // Stopwatch which was running on our thread when this stopwatch wa
[all...]
/external/lldb/test/
H A Dlldbbench.py6 """Stopwatch provides a simple utility to start/stop your stopwatch multiple
23 # Reset the stopwatch as we are about to perform other kind of operations.
105 self.stopwatch = Stopwatch()
111 del self.stopwatch
/external/chromium_org/content/browser/gpu/
H A Dbrowser_gpu_channel_host_factory.cc202 // to do with its efficiency. Using task stopwatch to exclude the waiting
204 tracked_objects::TaskStopwatch stopwatch; local
214 stopwatch.Stop();
/external/guava/guava/src/com/google/common/cache/
H A DLocalCache.java3501 final Stopwatch stopwatch = new Stopwatch(); field in class:LocalCache.LoadingValueReference
3564 stopwatch.start();
3581 return stopwatch.elapsedTime(NANOSECONDS);
4044 Stopwatch stopwatch = new Stopwatch().start();
4063 globalStatsCounter.recordLoadException(stopwatch.elapsedTime(NANOSECONDS));
4068 globalStatsCounter.recordLoadException(stopwatch.elapsedTime(NANOSECONDS));
4072 stopwatch.stop();
4087 globalStatsCounter.recordLoadException(stopwatch.elapsedTime(NANOSECONDS));
4092 globalStatsCounter.recordLoadSuccess(stopwatch.elapsedTime(NANOSECONDS));

Completed in 2107 milliseconds

12