}
}
- shared_ptr<LocationData> location(const InstructionPointer& ip) const
+ LocationData::Ptr location(const InstructionPointer& ip) const
{
LocationData data = {func(ip), file(ip), module(ip), ip.line};
auto it = lower_bound(m_locations.begin(), m_locations.end(), data);
vector<QString> m_strings;
mutable QHash<uint64_t, QString> m_ipAddresses;
- mutable vector<shared_ptr<LocationData>> m_locations;
+ mutable vector<LocationData::Ptr> m_locations;
bool diffMode = false;
};
if (!recursionGuard.contains(trace.ipIndex)) { // aggregate caller-callee data
auto it = lower_bound(callerCalleeRows.begin(), callerCalleeRows.end(), location,
- [] (const CallerCalleeData& lhs, const std::shared_ptr<LocationData>& rhs) {
+ [] (const CallerCalleeData& lhs, const LocationData::Ptr& rhs) {
return lhs.location < rhs;
});
if (it == callerCalleeRows.end() || it->location != location) {
struct MergedHistogramColumnData
{
- std::shared_ptr<LocationData> location;
+ LocationData::Ptr location;
int64_t allocations;
- bool operator<(const std::shared_ptr<LocationData>& rhs) const
+ bool operator<(const LocationData::Ptr& rhs) const
{
return location < rhs;
}