mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
Kernel+Profiler: Capture metadata about all profiled processes
The perfcore file format was previously limited to a single process since the pid/executable/regions data was top-level in the JSON. This patch moves the process-specific data into a top-level array named "processes" and we now add entries for each process that has been sampled during the profile run. This makes it possible to see samples from multiple threads when viewing a perfcore file with Profiler. This is extremely cool! :^)
This commit is contained in:
parent
ea500dd3e3
commit
5e7abea31e
11 changed files with 223 additions and 102 deletions
|
@ -68,7 +68,8 @@ DisassemblyModel::DisassemblyModel(Profile& profile, ProfileNode& node)
|
|||
kernel_elf = make<ELF::Image>((const u8*)m_kernel_file->data(), m_kernel_file->size());
|
||||
elf = kernel_elf.ptr();
|
||||
} else {
|
||||
auto library_data = profile.libraries().library_containing(node.address());
|
||||
// FIXME: This is kinda rickety looking with all the -> -> ->
|
||||
auto library_data = node.process(profile)->library_metadata->library_containing(node.address());
|
||||
if (!library_data) {
|
||||
dbgln("no library data");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue