Skip to content

Commit

Permalink
[PROF-9476] Prints
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJF committed Aug 29, 2024
1 parent 537af39 commit 9376f81
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions profiling-ffi/src/profiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,24 @@ impl<'a> TryFrom<&'a Mapping<'a>> for api::Mapping<'a> {
type Error = Utf8Error;

fn try_from(mapping: &'a Mapping<'a>) -> Result<Self, Self::Error> {
println!("TryFromMapping");
let filename = mapping.filename.try_to_utf8().expect("boom1");
println!("Filename: {:?}", filename);
let build_id = mapping.build_id.try_to_utf8().expect("boom2");
return Ok(Self {
println!("Build ID: {:?}", build_id);
let mapping = Self {
memory_start: mapping.memory_start,
memory_limit: mapping.memory_limit,
file_offset: mapping.file_offset,
filename,
filename_id: mapping.filename_id,
build_id,
build_id_id: mapping.build_id_id,
});
};
println!("Mapping: {:?}", mapping);
let result = Ok(mapping);
println!("Result: {:?}", result);
return result;
}
}

Expand Down

0 comments on commit 9376f81

Please sign in to comment.