Bug 1861507 - Separate rust targets and individual rust crates in profiles. r=firefox-build-system-reviewers,ahochheiden

There are unfortunate cases where all the rust targets don't end up on
the same line, and that's kind of confusing.

This keeps the rust targets using "Rust" (in config/makefiles/rust.mk)
and switching individual crates to "RustCrate". They will still appear
close to each other in the profiles, but targets will now have their
dedicated line.

Differential Revision: https://phabricator.services.mozilla.com/D192013
This commit is contained in:
Mike Hommey 2023-10-27 00:02:10 +00:00
parent cc280619c4
commit 51e176eb5e

View File

@ -221,7 +221,7 @@ def record_cargo_timings(resource_monitor, timings_path):
for name, start, duration in data:
resource_monitor.record_marker(
"Rust", cargo_start + start, cargo_start + start + duration, name
"RustCrate", cargo_start + start, cargo_start + start + duration, name
)