/system/extras/simpleperf/ |
D | record_lib_test.cpp | 50 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 …]
|
D | record_lib_interface.cpp | 112 bool ReadCounters(std::vector<Counter>* counters) override; 117 bool ReadRawCounters(std::vector<Counter>* counters); 170 bool PerfEventSetForCounting::ReadRawCounters(std::vector<Counter>* counters) { in ReadRawCounters() argument 177 counters->resize(s.size()); in ReadRawCounters() 183 Counter& sum = (*counters)[i]; in ReadRawCounters() 188 for (CounterInfo& c : info.counters) { in ReadRawCounters() 242 bool PerfEventSetForCounting::ReadCounters(std::vector<Counter>* counters) { in ReadCounters() argument 244 *counters = accumulated_counters_; in ReadCounters() 247 if (!ReadRawCounters(counters)) { in ReadCounters() 251 SubCounter((*counters)[i], last_start_counters_[i]); in ReadCounters() [all …]
|
D | cmd_stat.cpp | 367 bool ShowCounters(const std::vector<CountersInfo>& counters, 468 std::vector<CountersInfo> counters; in Run() local 495 if (!event_selection_set_.ReadCounters(&counters)) { in Run() 502 if (!ShowCounters(counters, duration_in_sec, fp)) { in Run() 672 bool StatCommand::ShowCounters(const std::vector<CountersInfo>& counters, in ShowCounters() argument 681 for (auto& counters_info : counters) { in ShowCounters() 682 for (auto& counter_info : counters_info.counters) { in ShowCounters() 704 for (size_t i = 0; i < counters.size(); ++i) { in ShowCounters() 705 const CountersInfo& counters_info = counters[i]; in ShowCounters() 707 for (auto& counter_info : counters_info.counters) { in ShowCounters() [all …]
|
D | event_selection_set.h | 55 std::vector<CounterInfo> counters; member 136 bool ReadCounters(std::vector<CountersInfo>* counters);
|
D | event_selection_set.cpp | 590 bool EventSelectionSet::ReadCounters(std::vector<CountersInfo>* counters) { in ReadCounters() argument 591 counters->clear(); in ReadCounters() 598 counters_info.counters = selection.hotplugged_counters; in ReadCounters() 604 counters_info.counters.push_back(counter); in ReadCounters() 606 counters->push_back(counters_info); in ReadCounters()
|
D | Android.bp | 426 // It's linked to user's program, to get profile counters and samples for specific code ranges.
|
/system/extras/tests/icachetest/ |
D | Profiler.h | 90 } 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 …]
|
D | icache_main.cpp | 102 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/netd/server/ |
D | TetherControllerTest.cpp | 411 std::string counters = Join(counterLines, "\n") + "\n"; in TEST_F() local 412 addIptablesRestoreOutput(counters, counters); in TEST_F() 423 counters = Join(counterLines, "\n") + "\n"; in TEST_F() 424 addIptablesRestoreOutput(counters, counters); in TEST_F()
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | rss_hwm_reset.te | 1 # rss_hwm_reset resets RSS high-water mark counters for all procesess.
|
/system/sepolicy/public/ |
D | rss_hwm_reset.te | 1 # rss_hwm_reset resets RSS high-water mark counters for all procesess.
|
/system/keymaster/ |
D | Android.bp | 45 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp" 135 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp" 182 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp" 221 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp" 268 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp" 309 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"
|
/system/extras/simpleperf/include/ |
D | simpleperf.h | 87 virtual bool ReadCounters(std::vector<Counter>* counters);
|
/system/bt/common/benchmark/ |
D | timer_performance_benchmark.cc | 190 state.counters[std::to_string(delay.first)] = delay.second; in BENCHMARK_DEFINE_F() 255 state.counters[std::to_string(delay.first)] = delay.second; in BENCHMARK_DEFINE_F()
|
/system/gatekeeper/ |
D | Android.bp | 41 clang_cflags: ["-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"],
|
/system/extras/perfprofd/tests/ |
D | perfprofd_test.cc | 1284 const std::unordered_set<std::string>& counters = android::perfprofd::GetSupportedPerfCounters(); in TEST_F() local 1285 EXPECT_TRUE(std::find(counters.begin(), counters.end(), std::string("cpu-cycles")) in TEST_F() 1286 != counters.end()) << android::base::Join(counters, ','); in TEST_F() 1287 EXPECT_TRUE(std::find(counters.begin(), counters.end(), std::string("page-faults")) in TEST_F() 1288 != counters.end()) << android::base::Join(counters, ','); in TEST_F()
|
/system/bt/gd/os/ |
D | alarm_benchmark.cc | 117 state.counters[std::to_string(delay.first)] = delay.second; in BENCHMARK_DEFINE_F()
|
/system/extras/perfprofd/ |
D | perfprofd_config.proto | 9 repeated string counters = 1; field
|
D | configreader.cc | 611 for (const std::string& str : event_config.counters()) { in ProtoToConfig()
|
/system/extras/simpleperf/doc/ |
D | README.md | 34 - [Display counters in systrace](#display-counters-in-systrace) 452 several hardware counters, counting events like how many cpu cycles have happened, how many 455 The Linux kernel wraps these hardware counters into hardware perf events. In addition, the Linux 464 2. The kernel enables counters while the profiled processes are running. 465 3. After profiling, simpleperf reads counters from the kernel, and reports a counter summary. 470 3. The kernel enables counters while the profiled processes are running. 568 hardware counters available in the PMU, the kernel shares hardware counters between events, so each 659 When monitoring perf counters, we can also use --interval to decide the print interval. 670 #### Display counters in systrace 672 Simpleperf can also work with systrace to dump counters in the collected trace. Below is an example [all …]
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | traced_probes.te | 73 # Allow access to the IHealth and IPowerStats HAL service for tracing battery counters.
|
/system/sepolicy/private/ |
D | traced_probes.te | 73 # Allow access to the IHealth and IPowerStats HAL service for tracing battery counters.
|