Home
last modified time | relevance | path

Searched refs:timing (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiLogger.java114 Pair<Long, Integer> timing = cache.get(logMessage); in updateLog() local
115 if (shouldLogNow(timing, curTime)) { in updateLog()
116 String log = buildMessage(logMessage, timing); in updateLog()
125 private static String buildMessage(String message, @Nullable Pair<Long, Integer> timing) { in buildMessage() argument
127 .append("[").append(timing == null ? 1 : timing.second).append("]:") in buildMessage()
133 Pair<Long, Integer> timing = cache.get(message); in increaseLogCount() local
134 if (timing != null) { in increaseLogCount()
135 cache.put(message, new Pair<>(timing.first, timing.second + 1)); in increaseLogCount()
139 private static boolean shouldLogNow(@Nullable Pair<Long, Integer> timing, long curTime) { in shouldLogNow() argument
140 return timing == null || curTime - timing.first > ERROR_LOG_DURATION_MILLIS; in shouldLogNow()
/frameworks/ml/nn/runtime/test/
DTestVersionedInterfaces.cpp366 const std::vector<OutputShape>& outputShapes, const Timing& timing) { in makeExecute_1_2Return() argument
367 return [launchStatus, returnStatus, outputShapes, timing]( in makeExecute_1_2Return()
370 cb->notify_1_2(returnStatus, outputShapes, timing); in makeExecute_1_2Return()
375 const std::vector<OutputShape>& outputShapes, const Timing& timing) { in makeExecute_1_3Return() argument
376 return [launchStatus, returnStatus, outputShapes, timing]( in makeExecute_1_3Return()
381 cb->notify_1_3(returnStatus, outputShapes, timing); in makeExecute_1_3Return()
387 const Timing& timing) { in makeExecuteSynchronouslyReturn() argument
388 return [status, outputShapes, timing](const V1_0::Request& /*request*/, in makeExecuteSynchronouslyReturn()
391 cb(status, outputShapes, timing); in makeExecuteSynchronouslyReturn()
397 const Timing& timing) { in makeExecuteSynchronously_1_3Return() argument
[all …]
/frameworks/ml/nn/runtime/
DCallbacks.cpp103 const Timing& timing) { in notify_1_2() argument
104 return notifyInternal(false, static_cast<ErrorStatus>(errorStatus), outputShapes, timing); in notify_1_2()
109 const Timing& timing) { in notify_1_3() argument
110 return notifyInternal(false, errorStatus, outputShapes, timing); in notify_1_3()
204 Timing timing) { in notifyInternal() argument
214 timing = kNoTiming; in notifyInternal()
224 timing = kNoTiming; in notifyInternal()
241 mTiming = timing; in notifyInternal()
DCallbacks.h284 const hal::Timing& timing) override;
323 const hal::Timing& timing) override;
328 const hal::Timing& timing) { in notify() argument
329 return notify_1_3(status, outputShapes, timing); in notify()
466 hal::Timing timing);
DManager.cpp375 Timing timing = kNoTiming; in execute() local
393 std::tie(n, outputShapes, timing, burstFallback) = in execute()
403 std::tie(n, outputShapes, timing) = mPreparedModel->execute( in execute()
409 return {n, std::move(outputShapes), timing}; in execute()
426 return {ANEURALNETWORKS_NO_ERROR, std::move(outputShapes), timing}; in execute()
441 hal::Timing timing = kNoTiming; in executeFenced() local
451 return {n1, -1, nullptr, timing}; in executeFenced()
456 return {n2, -1, nullptr, timing}; in executeFenced()
490 return {n, -1, nullptr, timing}; in executeFenced()
495 return {n, -1, nullptr, timing}; in executeFenced()
[all …]
DExecutionBuilder.cpp493 auto [n2, outputShapes, timing] = executor->computeOnCpuFallback(); in cpuFallbackPartial()
494 return {n2, std::move(outputShapes), timing, executor}; in cpuFallbackPartial()
507 Timing timing = kNoTiming; in asyncStartComputePartitioned() local
531 executionCallback->notify(ErrorStatus::NONE, outputShapes, timing); in asyncStartComputePartitioned()
549 timing = stepTiming; in asyncStartComputePartitioned()
592 timing = fallbackTiming; in asyncStartComputePartitioned()
1092 const auto [n, outputShapes, timing] = mPreparedModel->execute( in computeWithMemories()
1094 mExecutionBuilder->reportTimingWithoutFencedExecutionCallback(timing); in computeWithMemories()
1096 return {n, std::move(outputShapes), timing}; in computeWithMemories()
1116 const auto [n, syncFence, computeFencedCallback, timing] = mPreparedModel->executeFenced( in computeFenced()
[all …]
DVersionedInterfaces.cpp317 const Timing& timing) { in executeSynchronously() argument
318 result = getExecutionResult(error, outputShapes, timing); in executeSynchronously()
344 const Timing& timing) { in executeSynchronously() argument
345 result = getExecutionResult(convertToV1_3(error), outputShapes, timing); in executeSynchronously()
425 hal::Timing timing = {UINT64_MAX, UINT64_MAX}; in executeFenced() local
441 timing); in executeFenced()
447 hal::hidl_handle(nullptr), nullptr, timing); in executeFenced()
449 return std::make_tuple(ANEURALNETWORKS_NO_ERROR, syncFence, dispatchCallback, timing); in executeFenced()
458 timing); in executeFenced()
463 timing); in executeFenced()
[all …]
/frameworks/rs/perf-test-scripts/
Dtiming209 adb shell cat /sdcard/rsTimes/${TEST_NAMES[$testId]}_DATA.txt > timing.tmp
217 AVG=`cat timing.tmp | awk '{sum+=$2}END{printf "%.2f",sum/NR}'`
218 …STDCOEF=`cat timing.tmp | awk '{sum+=$2;sos+=$2*$2}END{printf "%.2f",sqrt((sos-sum*sum/NR)/NR)/(su…
269 adb shell cat /sdcard/rsTimes/${TEST_NAMES[$testId]}_DATA.txt > timing.tmp
276 AVG=`cat timing.tmp | awk '{sum+=$2}END{printf "%.2f",sum/NR}'`
277 …STDCOEF=`cat timing.tmp | awk '{sum+=$2;sos+=$2*$2}END{printf "%.2f",sqrt((sos-sum*sum/NR)/NR)/(su…
309 rm -f timing.tmp
/frameworks/ml/nn/driver/sample/
DSampleDriverUtils.cpp63 const hidl_vec<OutputShape>& outputShapes, Timing timing) { in notify() argument
64 const auto ret = callback->notify_1_2(convertToV1_0(status), outputShapes, timing); in notify()
71 const hidl_vec<OutputShape>& outputShapes, Timing timing) { in notify() argument
72 const auto ret = callback->notify_1_3(status, outputShapes, timing); in notify()
DSampleDriver.cpp494 Timing timing = {.timeOnDevice = uint64_t(microsecondsDuration(deviceEnd, deviceStart)), in asyncExecute() local
496 VLOG(DRIVER) << "SampleDriver::asyncExecute timing = " << toString(timing); in asyncExecute()
497 notify(callback, executionStatus, outputShapes, timing); in asyncExecute()
618 Timing timing = {.timeOnDevice = uint64_t(microsecondsDuration(deviceEnd, deviceStart)), in executeSynchronouslyBase() local
620 VLOG(DRIVER) << "executeSynchronouslyBase timing = " << toString(timing); in executeSynchronouslyBase()
621 return {executionStatus, std::move(outputShapes), timing}; in executeSynchronouslyBase()
629 auto [status, outputShapes, timing] = executeSynchronouslyBase( in executeSynchronously()
631 cb(convertToV1_0(status), std::move(outputShapes), timing); in executeSynchronously()
638 auto [status, outputShapes, timing] = executeSynchronouslyBase( in executeSynchronously_1_3()
640 cb(status, std::move(outputShapes), timing); in executeSynchronously_1_3()
[all …]
DSampleDriverUtils.h41 const hal::hidl_vec<hal::OutputShape>& outputShapes, hal::Timing timing);
44 const hal::hidl_vec<hal::OutputShape>& outputShapes, hal::Timing timing);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_reduce.java52 private static class timing { class in UT_reduce
53 timing(long myJavaStart, long myJavaEnd, long myRsStart, in timing() method in UT_reduce.timing
70 timing(long myInputCells) { in timing() method in UT_reduce.timing
110 return (new timing(myJavaStart, myJavaEnd, myRsStart, in string()
115 return (new timing(myInputCells)).string(); in string()
197 private <T extends Number> boolean result(String testName, final timing t, in result()
207 private boolean result(String testName, final timing t, in result()
228 private boolean result(String testName, final timing t, in result()
249 private boolean result(String testName, final timing t, in result()
254 private boolean result(String testName, final timing t, Int2 javaResult, Int2 rsResult) { in result()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_reduce.java50 private static class timing { class in UT_reduce
51 timing(long myJavaStart, long myJavaEnd, long myRsStart, in timing() method in UT_reduce.timing
68 timing(long myInputCells) { in timing() method in UT_reduce.timing
108 return (new timing(myJavaStart, myJavaEnd, myRsStart, in string()
113 return (new timing(myInputCells)).string(); in string()
195 private <T extends Number> boolean result(String testName, final timing t, in result()
205 private boolean result(String testName, final timing t, in result()
226 private boolean result(String testName, final timing t, in result()
247 private boolean result(String testName, final timing t, in result()
252 private boolean result(String testName, final timing t, Int2 javaResult, Int2 rsResult) { in result()
[all …]
/frameworks/ml/nn/tools/systrace_parser/parser/test/
Domr1.txt4 NNAPI timing summary (self-times, ms wall-clock) …
19 NNAPI timing summary (self-times, ms wall-clock) …
34 NNAPI timing summary (self-times, ms wall-clock) …
49 NNAPI timing summary (self-times, ms wall-clock) …
64 NNAPI timing summary (self-times, ms wall-clock) …
Dunittest.txt4 NNAPI timing summary (self-times, ms wall-clock) …
19 NNAPI timing summary (self-times, ms wall-clock) …
Dhdrnet-bm.txt4 NNAPI timing summary (self-times, ms wall-clock) Benchmark
Dhdrnet.txt4 NNAPI timing summary (self-times, ms wall-clock) …
Dold.txt4 NNAPI timing summary (self-times, ms wall-clock) …
Dcpu.txt4 NNAPI timing summary (self-times, ms wall-clock) …
/frameworks/base/core/tests/coretests/src/android/os/
DPerformanceCollectorTest.java94 Bundle timing = mPerfCollector.stopTiming("timing4"); in testStopTimingNoWriter() local
100 verifyTimingBundle(timing, labels); in testStopTimingNoWriter()
161 Bundle timing = mPerfCollector.stopTiming("timing8"); in testStopTiming() local
167 verifyTimingBundle(timing, labels); in testStopTiming()
248 Bundle timing = mPerfCollector.stopTiming("iteration5"); in testSimpleSequence() local
262 verifyTimingBundle(timing, labels); in testSimpleSequence()
465 private void verifyTimingBundle(Bundle timing, ArrayList<String> labels) { in verifyTimingBundle() argument
466 assertEquals(1, timing.size()); in verifyTimingBundle()
467 assertTrue(timing.containsKey(PerformanceCollector.METRIC_KEY_ITERATIONS)); in verifyTimingBundle()
468 ArrayList<Parcelable> iterations = timing.getParcelableArrayList( in verifyTimingBundle()
/frameworks/ml/nn/common/
DExecutionBurstServer.cpp88 const Timing& timing) { in execute() argument
91 returnedTiming = timing; in execute()
113 const std::vector<OutputShape>& outputShapes, Timing timing) { in serialize() argument
155 datum.executionTiming(timing); in serialize()
466 const std::vector<OutputShape>& outputShapes, Timing timing) { in send() argument
467 const std::vector<FmqResultDatum> serialized = serialize(errorStatus, outputShapes, timing); in send()
DExecutionBurstController.cpp221 const Timing timing = data[index].executionTiming(); in deserialize() local
231 return std::make_tuple(errorStatus, std::move(outputShapes), timing); in deserialize()
576 V1_0::ErrorStatus status, std::vector<OutputShape> outputShapes, Timing timing, in getExecutionResult() argument
579 getExecutionResult(convertToV1_3(status), std::move(outputShapes), timing); in getExecutionResult()
616 auto [status, outputShapes, timing] = std::move(*result); in compute()
617 return getExecutionResult(status, std::move(outputShapes), timing, /*fallback=*/false); in compute()
/frameworks/native/vulkan/libvulkan/
Dswapchain.cpp273 android::Vector<TimingInfo> timing; member
341 swapchain->timing.clear(); in OrphanSwapchain()
345 if (swapchain.timing.size() < MIN_NUM_FRAMES_AGO) { in get_num_ready_timings()
350 const size_t num_timings = swapchain.timing.size() - MIN_NUM_FRAMES_AGO + 1; in get_num_ready_timings()
352 TimingInfo& ti = swapchain.timing.editItemAt(i); in get_num_ready_timings()
407 if (swapchain.timing.empty()) { in copy_ready_timings()
412 size_t last_ready = swapchain.timing.size() - 1; in copy_ready_timings()
413 while (!swapchain.timing[last_ready].ready()) { in copy_ready_timings()
424 const TimingInfo& ti = swapchain.timing[i]; in copy_ready_timings()
434 swapchain.timing.removeItemsAt(0, num_to_remove); in copy_ready_timings()
[all …]
/frameworks/ml/nn/tools/systrace_parser/
DREADME.txt4 timing statistics.
/frameworks/ml/nn/common/include/
DExecutionBurstServer.h57 hardware::neuralnetworks::V1_2::Timing timing);
165 hardware::neuralnetworks::V1_2::Timing timing);

12