MemoryDumpPartitionStatsDumper::kPartitionsDumpName, type_id);```
"malloc/partitions/leaked/LeakedSecurityObject/%08x": { "size": ... }
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thank you for the review.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
thestig@, would you review this CL?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
#include <unordered_map>Is there a special need to use std::unordered_map instead of a std::map?
reported_leaks.find(TestClass1::kPartitionAllocSanitizedObjectTypeId));Take the resulting iterator and use ASSERT_NE() here. Then reuse the iterator on line 321.
EXPECT_EQ(1u, reported_leaks.size());Maybe do this check earlier?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thank you for the review.
#include <unordered_map>Is there a special need to use std::unordered_map instead of a std::map?
No special need, because it's just for testing and the map will contain very few items.
I replaced it with `base::flat_map`. Is it ok? Or `std::map` is better?
reported_leaks.find(TestClass1::kPartitionAllocSanitizedObjectTypeId));Take the resulting iterator and use ASSERT_NE() here. Then reuse the iterator on line 321.
I see. Done
Maybe do this check earlier?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
#include <unordered_map>Takashi SakamotoIs there a special need to use std::unordered_map instead of a std::map?
No special need, because it's just for testing and the map will contain very few items.
I replaced it with `base::flat_map`. Is it ok? Or `std::map` is better?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thank you for the review.
MemoryDumpPartitionStatsDumper::kPartitionsDumpName, type_id);Takashi Sakamoto```
"malloc/partitions/leaked/LeakedSecurityObject/%08x": { "size": ... }
```
Acknowledged
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
PA: Report LeakedSecurityObject's type id and total leaked size with MallocDumpProvider
MallocDumpProvider uses partition_alloc::DumpIntendedLeakStats() to
report leaked size per each LeakedSecurityObject's type_id. The reported
sizes are based on `slot_size`, not `requested size`. We can see the
data by using tracing with memory-infra.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |