Home
last modified time | relevance | path

Searched refs:counters (Results 1 – 25 of 33) sorted by relevance

12

/system/extras/simpleperf/
Drecord_lib_test.cpp50 std::vector<Counter> counters; in TEST() local
51 ASSERT_TRUE(perf->ReadCounters(&counters)); in TEST()
52 ASSERT_EQ(counters.size(), 3u); in TEST()
53 ASSERT_EQ(counters[0].event, "cpu-cycles"); in TEST()
54 ASSERT_EQ(counters[1].event, "cpu-cycles:u"); in TEST()
55 ASSERT_EQ(counters[2].event, "cpu-cycles:k"); in TEST()
56 for (auto& counter : counters) { in TEST()
75 std::vector<Counter> counters; in TEST() local
76 ASSERT_TRUE(perf->ReadCounters(&counters)); in TEST()
77 ASSERT_EQ(counters.size(), 1u); in TEST()
[all …]
Drecord_lib_interface.cpp114 bool ReadCounters(std::vector<Counter>* counters) override;
119 bool ReadRawCounters(std::vector<Counter>* counters);
172 bool PerfEventSetForCounting::ReadRawCounters(std::vector<Counter>* counters) { in ReadRawCounters() argument
179 counters->resize(s.size()); in ReadRawCounters()
185 Counter& sum = (*counters)[i]; in ReadRawCounters()
190 for (CounterInfo& c : info.counters) { in ReadRawCounters()
244 bool PerfEventSetForCounting::ReadCounters(std::vector<Counter>* counters) { in ReadCounters() argument
246 *counters = accumulated_counters_; in ReadCounters()
249 if (!ReadRawCounters(counters)) { in ReadCounters()
253 SubCounter((*counters)[i], last_start_counters_[i]); in ReadCounters()
[all …]
Dcmd_stat.cpp439 void AdjustToIntervalOnlyValues(std::vector<CountersInfo>& counters);
440 bool ShowCounters(const std::vector<CountersInfo>& counters, double duration_in_sec, FILE* fp);
563 std::vector<CountersInfo> counters; in Run() local
583 if (!event_selection_set_.ReadCounters(&counters)) { in Run()
589 AdjustToIntervalOnlyValues(counters); in Run()
591 if (!ShowCounters(counters, duration_in_sec, fp)) { in Run()
782 void StatCommand::AdjustToIntervalOnlyValues(std::vector<CountersInfo>& counters) { in AdjustToIntervalOnlyValues() argument
783 if (last_sum_values_.size() < counters.size()) { in AdjustToIntervalOnlyValues()
784 last_sum_values_.resize(counters.size()); in AdjustToIntervalOnlyValues()
786 for (size_t i = 0; i < counters.size(); i++) { in AdjustToIntervalOnlyValues()
[all …]
Devent_selection_set.h52 std::vector<CounterInfo> counters; member
162 bool ReadCounters(std::vector<CountersInfo>* counters);
Devent_selection_set.cpp715 bool EventSelectionSet::ReadCounters(std::vector<CountersInfo>* counters) { in ReadCounters() argument
716 counters->clear(); in ReadCounters()
723 counters_info.counters = selection.hotplugged_counters; in ReadCounters()
729 counters_info.counters.push_back(counter); in ReadCounters()
731 counters->push_back(counters_info); in ReadCounters()
/system/extras/tests/icachetest/
DProfiler.h90 } counters[Profiler::EVENT_COUNT]; variable
97 lhs.counters[i].value -= rhs.counters[i].value;
103 uint64_t getInstructions() const { return counters[INSTRUCTIONS].value; } in getInstructions()
104 uint64_t getCpuCycles() const { return counters[CPU_CYCLES].value; } in getCpuCycles()
105 uint64_t getL1DReferences() const { return counters[DCACHE_REFS].value; } in getL1DReferences()
106 uint64_t getL1DMisses() const { return counters[DCACHE_MISSES].value; } in getL1DMisses()
107 uint64_t getL1IReferences() const { return counters[ICACHE_REFS].value; } in getL1IReferences()
108 uint64_t getL1IMisses() const { return counters[ICACHE_MISSES].value; } in getL1IMisses()
109 uint64_t getBranchInstructions() const { return counters[BRANCHES].value; } in getBranchInstructions()
110 uint64_t getBranchMisses() const { return counters[BRANCH_MISSES].value; } in getBranchMisses()
[all …]
Dicache_main.cpp102 Profiler::Counters counters; in main() local
113 profiler.readCounters(&counters); in main()
116 << counters.getCpuCycles()/double(REPETITIONS) << "\t" in main()
117 << counters.getL1IReferences()/double(REPETITIONS) << "\t" in main()
118 << counters.getMPKI(counters.getL1IMisses()) << "\t" in main()
/system/core/trusty/fuzz/
Dcounters.cpp37 __attribute__((section("__libfuzzer_extra_counters"))) volatile uint8_t counters[kMaxNumCounters]; variable
54 assert(end - begin <= sizeof(counters)); in ExtraCounters()
90 *(counters + i) = *(begin + i); in Flush()
Dtipc_fuzzer.cpp79 ExtraCounters counters(record.get()); in LLVMFuzzerTestOneInput() local
80 counters.Reset(); in LLVMFuzzerTestOneInput()
DAndroid.bp40 "counters.cpp",
/system/extras/simpleperf/doc/
Dandroid_platform_profiling.md74 these events are mapped to PMU counters on each cpu core. But each core only has a limited number
75 of PMU counters. If number of events > number of PMU counters, then the counters are multiplexed
78 On Pixel devices, the number of PMU counters on each core is usually 7, of which 4 of them are used
79 by the kernel to monitor memory latency. So only 3 counters are available. It's fine to monitor up
80 to 3 PMU events at the same time. To monitor more than 3 events, the `--use-devfreq-counters` option
81 can be used to borrow from the counters used by the kernel.
Dexecutable_commands_reference.md15 - [Display counters in systrace](#display-counters-in-systrace)
37 several hardware counters, counting events like how many cpu cycles have happened, how many
40 The Linux kernel wraps these hardware counters into hardware perf events. In addition, the Linux
49 2. The kernel enables counters while the profiled processes are running.
50 3. After profiling, simpleperf reads counters from the kernel, and reports a counter summary.
55 3. The kernel enables counters while the profiled processes are running.
153 hardware counters available in the PMU, the kernel shares hardware counters between events, so each
244 When monitoring perf counters, we can also use --interval to decide the print interval.
255 ### Display counters in systrace
257 Simpleperf can also work with systrace to dump counters in the collected trace. Below is an example
[all …]
/system/netd/server/
DTetherControllerTest.cpp414 std::string counters = Join(counterLines, "\n") + "\n"; in TEST_F() local
415 addIptablesRestoreOutput(counters, counters); in TEST_F()
426 counters = Join(counterLines, "\n") + "\n"; in TEST_F()
427 addIptablesRestoreOutput(counters, counters); in TEST_F()
/system/sepolicy/prebuilts/api/31.0/public/
Drss_hwm_reset.te1 # rss_hwm_reset resets RSS high-water mark counters for all procesess.
/system/sepolicy/prebuilts/api/29.0/public/
Drss_hwm_reset.te1 # rss_hwm_reset resets RSS high-water mark counters for all procesess.
/system/sepolicy/public/
Drss_hwm_reset.te1 # rss_hwm_reset resets RSS high-water mark counters for all procesess.
/system/sepolicy/prebuilts/api/30.0/public/
Drss_hwm_reset.te1 # rss_hwm_reset resets RSS high-water mark counters for all procesess.
/system/core/trusty/apploader/fuzz/
Dapp_fuzzer.cpp100 ExtraCounters counters(&record); in LLVMFuzzerTestOneInput() local
101 counters.Reset(); in LLVMFuzzerTestOneInput()
/system/unwinding/libunwindstack/benchmarks/
DElfBenchmark.cpp66 state.counters["RSS_BYTES"] = rss_bytes / static_cast<double>(state.iterations()); in BenchmarkElfCreate()
68 state.counters["ALLOCATED_BYTES"] = alloc_bytes / static_cast<double>(state.iterations()); in BenchmarkElfCreate()
DSymbolBenchmark.cpp79 state.counters["RSS_BYTES"] = rss_bytes / static_cast<double>(state.iterations()); in BenchmarkSymbolLookup()
81 state.counters["ALLOCATED_BYTES"] = alloc_bytes / static_cast<double>(state.iterations()); in BenchmarkSymbolLookup()
/system/core/trusty/confirmationui/fuzz/
Dmsg_fuzzer.cpp148 ExtraCounters counters(&record); in LLVMFuzzerTestOneInput() local
149 counters.Reset(); in LLVMFuzzerTestOneInput()
/system/extras/simpleperf/include/
Dsimpleperf.h87 virtual bool ReadCounters(std::vector<Counter>* counters);
/system/bt/common/benchmark/
Dtimer_performance_benchmark.cc189 state.counters[std::to_string(delay.first)] = delay.second; in BENCHMARK_DEFINE_F()
254 state.counters[std::to_string(delay.first)] = delay.second; in BENCHMARK_DEFINE_F()
/system/gatekeeper/
DAndroid.bp46 clang_cflags: ["-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"],
/system/bt/gd/os/
Dalarm_benchmark.cc128 state.counters[std::to_string(delay.first)] = delay.second; in BENCHMARK_DEFINE_F()

12