Home
last modified time | relevance | path

Searched refs:comparator (Results 1 – 8 of 8) sorted by relevance

/system/extras/simpleperf/
Dcmd_stat_impl.h170 SummaryComparator comparator; in BuildSummaryComparator() local
173 comparator.AddCompareFunction(CompareSummaryCount); in BuildSummaryComparator()
176 comparator.AddCompareFunction(CompareSummaryCountPerThread); in BuildSummaryComparator()
180 comparator.AddCompareFunction(CompareSummaryCpu); in BuildSummaryComparator()
184 comparator.AddCompareFunction(CompareSummaryPid); in BuildSummaryComparator()
188 comparator.AddCompareFunction(CompareSummaryTid); in BuildSummaryComparator()
192 comparator.AddCompareFunction(CompareSummaryComm); in BuildSummaryComparator()
199 return comparator; in BuildSummaryComparator()
207 const std::optional<SummaryComparator>& comparator) in CounterSummaryBuilder() argument
212 summary_comparator_(comparator) {} in CounterSummaryBuilder()
Dcmd_report.cpp324 SampleComparator<SampleEntry> comparator; member
340 builder.reset(new TimestampSampleTreeBuilder(comparator, thread_tree)); in CreateSampleTreeBuilder()
342 builder.reset(new EventCountSampleTreeBuilder(comparator, thread_tree)); in CreateSampleTreeBuilder()
653 SampleComparator<SampleEntry> comparator; in ParseOptions() local
681 comparator.AddCompareFunction(ComparePid); in ParseOptions()
684 comparator.AddCompareFunction(CompareTid); in ParseOptions()
687 comparator.AddCompareFunction(CompareComm); in ParseOptions()
690 comparator.AddCompareFunction(CompareDso); in ParseOptions()
693 comparator.AddCompareFunction(CompareSymbol); in ParseOptions()
696 comparator.AddCompareFunction(CompareVaddrInFile); in ParseOptions()
[all …]
Dsample_tree.h58 explicit SampleTreeBuilder(const SampleComparator<EntryT>& comparator) in SampleTreeBuilder() argument
59 : sample_set_(comparator), in SampleTreeBuilder()
61 sample_comparator_(comparator), in SampleTreeBuilder()
62 callchain_sample_set_(comparator), in SampleTreeBuilder()
313 explicit SampleTreeSorter(SampleComparator<EntryT> comparator) in SampleTreeSorter() argument
314 : comparator_(comparator) {} in SampleTreeSorter()
Dcmd_kmem.cpp503 SampleComparator<SlabSample> comparator; in PrepareToBuildSampleTree() local
518 comparator.AddCompareFunction(CompareSymbol); in PrepareToBuildSampleTree()
521 comparator.AddCompareFunction(ComparePtr); in PrepareToBuildSampleTree()
536 comparator.AddCompareFunction(CompareGfpFlags); in PrepareToBuildSampleTree()
546 new SlabSampleTreeBuilder(comparator, &thread_tree_)); in PrepareToBuildSampleTree()
549 sort_comparator.AddComparator(comparator); in PrepareToBuildSampleTree()
Dcmd_stat_test.cpp414 std::optional<SummaryComparator> comparator = in BuildSummary() local
417 comparator); in BuildSummary()
/system/extras/iotop/
Diotop.cpp58 static auto comparator = [](auto& lhs, auto& rhs, auto field, bool ascending) -> bool { in GetSorter() local
73 auto bound_comparator = std::bind(comparator, _1, _2, field, ascending); in GetSorter()
/system/core/libutils/include/utils/
DStrongPointer.h115 template <template <typename C> class comparator, typename T, typename U>
117 return comparator<typename std::common_type<T*, U*>::type>()(a, b); in _sp_compare_()
DRefBase.h203 template<template<typename C> class comparator, typename T, typename U>
205 return comparator<typename std::common_type<T*, U*>::type>()(a, b); in _wp_compare_()