[heap] Fix full GC name in --trace-gc output

Replace "ms" and "Mark-Sweep" with "mc" and "MarkCompact" respectively.

Bug: v8:12612
Change-Id: Idb06b908ccc4dcc281a9a0e814c5827069bd0ff3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3950293
Auto-Submit: Omer Katz <omerkatz@chromium.org>
Commit-Queue: Omer Katz <omerkatz@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83670}
This commit is contained in:
Omer Katz 2022-10-13 10:36:54 +02:00 committed by V8 LUCI CQ
parent f65a3184ba
commit a480c90950

View File

@ -76,7 +76,7 @@ const char* GCTracer::Event::TypeName(bool short_name) const {
return (short_name) ? "s" : "Scavenge";
case MARK_COMPACTOR:
case INCREMENTAL_MARK_COMPACTOR:
return (short_name) ? "ms" : "Mark-sweep";
return (short_name) ? "mc" : "Mark-Compact";
case MINOR_MARK_COMPACTOR:
case INCREMENTAL_MINOR_MARK_COMPACTOR:
return (short_name) ? "mmc" : "Minor Mark-Compact";