Home
last modified time | relevance | path

Searched refs:sample2 (Results 1 – 4 of 4) sorted by relevance

/system/extras/simpleperf/
Dsample_tree_test.cpp53 static int CompareSampleFunction(const SampleEntry& sample1, const SampleEntry& sample2) { in CompareSampleFunction() argument
54 if (sample1.thread->pid != sample2.thread->pid) { in CompareSampleFunction()
55 return sample1.thread->pid - sample2.thread->pid; in CompareSampleFunction()
57 if (sample1.thread->tid != sample2.thread->tid) { in CompareSampleFunction()
58 return sample1.thread->tid - sample2.thread->tid; in CompareSampleFunction()
60 if (strcmp(sample1.thread_comm, sample2.thread_comm) != 0) { in CompareSampleFunction()
61 return strcmp(sample1.thread_comm, sample2.thread_comm); in CompareSampleFunction()
63 if (sample1.map->dso->Path() != sample2.map->dso->Path()) { in CompareSampleFunction()
64 return sample1.map->dso->Path() > sample2.map->dso->Path() ? 1 : -1; in CompareSampleFunction()
66 if (sample1.map->start_addr != sample2.map->start_addr) { in CompareSampleFunction()
[all …]
Dsample_tree.h117 bool operator()(SampleEntry* sample1, SampleEntry* sample2) const { in operator()
118 return compare_function(*sample1, *sample2) < 0; in operator()
127 bool operator()(SampleEntry* sample1, SampleEntry* sample2) const { in operator()
129 uint64_t period2 = sample2->period + sample2->accumulated_period; in operator()
133 return compare_function(*sample1, *sample2) < 0; in operator()
Dcmd_report.cpp119 virtual int Compare(const SampleEntry& sample1, const SampleEntry& sample2) const = 0;
127 int Compare(const SampleEntry& sample1, const SampleEntry& sample2) const override { in Compare()
128 return sample1.thread->pid - sample2.thread->pid; in Compare()
141 int Compare(const SampleEntry& sample1, const SampleEntry& sample2) const override { in Compare()
142 return sample1.thread->tid - sample2.thread->tid; in Compare()
155 int Compare(const SampleEntry& sample1, const SampleEntry& sample2) const override { in Compare()
156 return strcmp(sample1.thread_comm, sample2.thread_comm); in Compare()
169 int Compare(const SampleEntry& sample1, const SampleEntry& sample2) const override { in Compare()
170 return strcmp(sample1.map->dso->Path().c_str(), sample2.map->dso->Path().c_str()); in Compare()
183 int Compare(const SampleEntry& sample1, const SampleEntry& sample2) const override { in Compare()
[all …]
Dcallchain.cpp26 static bool MatchSampleByName(const SampleEntry* sample1, const SampleEntry* sample2) { in MatchSampleByName() argument
27 return strcmp(sample1->symbol->Name(), sample2->symbol->Name()) == 0; in MatchSampleByName()