forked from weaselab/conflict-set
Just output metrics in the order declared
This commit is contained in:
+2
-6
@@ -3264,17 +3264,13 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
|
||||
int metricsCount = 0;
|
||||
void initMetrics() {
|
||||
metrics = (MetricsV1 *)safe_malloc(metricsCount * sizeof(metrics[0]));
|
||||
for (auto [i, m] = std::make_tuple(0, metricList); i < metricsCount;
|
||||
++i, m = m->prev) {
|
||||
for (auto [i, m] = std::make_tuple(metricsCount - 1, metricList); i >= 0;
|
||||
--i, m = m->prev) {
|
||||
metrics[i].name = m->name;
|
||||
metrics[i].help = m->help;
|
||||
metrics[i].p = m;
|
||||
metrics[i].type = m->type;
|
||||
}
|
||||
std::sort(metrics, metrics + metricsCount,
|
||||
[](const MetricsV1 &lhs, const MetricsV1 &rhs) -> bool {
|
||||
return std::string_view(lhs.name) < std::string_view(rhs.name);
|
||||
});
|
||||
}
|
||||
|
||||
Metric *metricList = nullptr;
|
||||
|
||||
@@ -5,8 +5,6 @@ __stack_chk_guard@GLIBC_2.17
|
||||
abort@GLIBC_2.17
|
||||
free@GLIBC_2.17
|
||||
malloc@GLIBC_2.17
|
||||
memcmp@GLIBC_2.17
|
||||
memcpy@GLIBC_2.17
|
||||
memmove@GLIBC_2.17
|
||||
memset@GLIBC_2.17
|
||||
strlen@GLIBC_2.17
|
||||
memset@GLIBC_2.17
|
||||
@@ -5,8 +5,6 @@ _abort
|
||||
_bzero
|
||||
_free
|
||||
_malloc
|
||||
_memcmp
|
||||
_memcpy
|
||||
_memmove
|
||||
_strlen
|
||||
dyld_stub_binder
|
||||
+1
-3
@@ -6,8 +6,6 @@ __tls_get_addr@GLIBC_2.3
|
||||
abort@GLIBC_2.2.5
|
||||
free@GLIBC_2.2.5
|
||||
malloc@GLIBC_2.2.5
|
||||
memcmp@GLIBC_2.2.5
|
||||
memcpy@GLIBC_2.14
|
||||
memmove@GLIBC_2.2.5
|
||||
memset@GLIBC_2.2.5
|
||||
strlen@GLIBC_2.2.5
|
||||
memset@GLIBC_2.2.5
|
||||
Reference in New Issue
Block a user