mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
minor comment fixes
This commit is contained in:
parent
7723ee047c
commit
e6ebad3027
@ -2932,7 +2932,7 @@ struct MappingInfo {
|
|||||||
// Start of address range. Inclusive.
|
// Start of address range. Inclusive.
|
||||||
uintptr_t start_address;
|
uintptr_t start_address;
|
||||||
// End of address range. Exclusive, so the mapping is the half-open interval
|
// End of address range. Exclusive, so the mapping is the half-open interval
|
||||||
// [start, end) and its length in bytes is `end - start`). As in /proc/self/maps.
|
// [start, end) and its length in bytes is `end - start`. As in /proc/self/maps.
|
||||||
uintptr_t end_address;
|
uintptr_t end_address;
|
||||||
// Read/Write/Executable permissions.
|
// Read/Write/Executable permissions.
|
||||||
bool perm_r, perm_w, perm_x;
|
bool perm_r, perm_w, perm_x;
|
||||||
@ -2981,8 +2981,6 @@ MappingInfo* LookUpMapping(std::vector<MappingInfo>& mappings, uintptr_t address
|
|||||||
{
|
{
|
||||||
// We assume mappings to be sorted by address, as /proc/self/maps seems to be.
|
// We assume mappings to be sorted by address, as /proc/self/maps seems to be.
|
||||||
// Construct a MappingInfo just for the purpose of using std::lower_bound.
|
// Construct a MappingInfo just for the purpose of using std::lower_bound.
|
||||||
// (It's an abuse of MappingInfo since this address range is not necessarily
|
|
||||||
// one mapping).
|
|
||||||
MappingInfo needle;
|
MappingInfo needle;
|
||||||
needle.start_address = address;
|
needle.start_address = address;
|
||||||
needle.end_address = address;
|
needle.end_address = address;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user