mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:15:06 +00:00
Kernel: Replace process' regions vector with a Red Black tree
This should provide some speed up, as currently searches for regions containing a given address were performed in O(n) complexity, while this container allows us to do those in O(logn).
This commit is contained in:
parent
497c759ab7
commit
2c93123daf
7 changed files with 89 additions and 97 deletions
|
@ -203,8 +203,8 @@ void PerformanceEventBuffer::add_process(const Process& process)
|
|||
|
||||
for (auto& region : process.space().regions()) {
|
||||
sampled_process->regions.append(SampledProcess::Region {
|
||||
.name = region.name(),
|
||||
.range = region.range(),
|
||||
.name = region->name(),
|
||||
.range = region->range(),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue