diff options
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/trace/tracenode.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/trace/tracenode.cpp b/vespalib/src/vespa/vespalib/trace/tracenode.cpp index 12dd51ac677..02883eda808 100644 --- a/vespalib/src/vespa/vespalib/trace/tracenode.cpp +++ b/vespalib/src/vespa/vespalib/trace/tracenode.cpp @@ -37,6 +37,12 @@ struct Cmp { } }; +void sortChildren(std::vector<TraceNode> & children) __attribute((noinline)); +void +sortChildren(std::vector<TraceNode> & children) { + std::sort(children.begin(), children.end(), Cmp()); +} + } // namespace <unnamed> @@ -121,7 +127,7 @@ TraceNode::sort() child.sort(); } if (!isStrict()) { - std::sort(_children.begin(), _children.end(), Cmp()); + sortChildren(_children); } } return *this; |