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.cpp315 SampleComparator<SampleEntry> comparator; member
332 builder.reset(new TimestampSampleTreeBuilder(comparator, thread_tree)); in CreateSampleTreeBuilder()
334 builder.reset(new EventCountSampleTreeBuilder(comparator, thread_tree)); in CreateSampleTreeBuilder()
646 SampleComparator<SampleEntry> comparator; in BuildSampleComparatorAndDisplayer() local
673 comparator.AddCompareFunction(ComparePid); in BuildSampleComparatorAndDisplayer()
676 comparator.AddCompareFunction(CompareTid); in BuildSampleComparatorAndDisplayer()
679 comparator.AddCompareFunction(CompareComm); in BuildSampleComparatorAndDisplayer()
682 comparator.AddCompareFunction(CompareDso); in BuildSampleComparatorAndDisplayer()
685 comparator.AddCompareFunction(CompareSymbol); in BuildSampleComparatorAndDisplayer()
688 comparator.AddCompareFunction(CompareVaddrInFile); in BuildSampleComparatorAndDisplayer()
[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()
304 explicit SampleTreeSorter(SampleComparator<EntryT> comparator) : comparator_(comparator) {} in SampleTreeSorter() argument
Dcmd_kmem.cpp484 SampleComparator<SlabSample> comparator; in PrepareToBuildSampleTree() local
498 comparator.AddCompareFunction(CompareSymbol); in PrepareToBuildSampleTree()
501 comparator.AddCompareFunction(ComparePtr); in PrepareToBuildSampleTree()
513 comparator.AddCompareFunction(CompareGfpFlags); in PrepareToBuildSampleTree()
522 slab_sample_tree_builder_.reset(new SlabSampleTreeBuilder(comparator, &thread_tree_)); in PrepareToBuildSampleTree()
525 sort_comparator.AddComparator(comparator); in PrepareToBuildSampleTree()
Dcmd_stat_test.cpp412 std::optional<SummaryComparator> comparator = in BuildSummary() local
415 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.h149 template <template <typename C> class comparator, typename T, typename U>
151 return comparator<typename std::common_type<T*, U*>::type>()(a, b); in _sp_compare_()
DRefBase.h241 template<template<typename C> class comparator, typename T, typename U>
243 return comparator<typename std::common_type<T*, U*>::type>()(a, b); in _wp_compare_()