1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00
This commit is contained in:
Benoit Jacob 2020-11-19 17:09:29 -05:00
parent 3721d63f9f
commit a20f858237

View File

@ -2975,6 +2975,12 @@ MappingInfoVector ParseMappings()
return result; return result;
} }
// Takes as input an address range [start_address, end_address) and a
// known vector `mappings`, and returns as output-params a range
// of iterators into this `mappings` vector, containing the mappings that
// intersect that address range.
// Returns true if such a range of iterators exist, false otherwise
// (that is, if the input address range can't be covered by known mappings).
bool GetMappingsRange(MappingInfoVector& mappings, bool GetMappingsRange(MappingInfoVector& mappings,
std::uintptr_t start_address, std::uintptr_t start_address,
std::uintptr_t end_address, std::uintptr_t end_address,