Add codegen timing section

This commit is contained in:
Jakub Beránek
2025-06-20 15:49:18 +02:00
parent 3b97f1308f
commit 332ae3b7e6
4 changed files with 50 additions and 4 deletions

View File

@@ -144,6 +144,7 @@ impl Emitter for JsonEmitter {
};
let name = match record.section {
TimingSection::Linking => "link",
TimingSection::Codegen => "codegen",
};
let data = SectionTimestamp { name, event, timestamp: record.timestamp };
let result = self.emit(EmitTyped::SectionTiming(data));