add timetrace artifact type

This commit is contained in:
partouf
2023-04-22 12:41:41 +02:00
parent 9abc9bd5e0
commit 67f07dd672
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ export class ClangCompiler extends BaseCompiler {
this.addArtifactToResult(
result,
jsonFilepath,
ArtifactType.download,
ArtifactType.timetrace,
'Trace events JSON',
(buffer: Buffer) => {
return buffer.toString('utf-8').startsWith('{"traceEvents":[');
+1 -1
View File
@@ -1740,7 +1740,7 @@ export class Compiler extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Co
this.emulateSpeccyTape(artifact.content);
} else if (artifact.type === ArtifactType.smsrom) {
this.emulateMiracleSMS(artifact.content);
} else if (artifact.type === ArtifactType.download) {
} else if (artifact.type === ArtifactType.timetrace) {
this.offerViewInPerfetto(artifact);
}
}
+1
View File
@@ -56,6 +56,7 @@ export enum ArtifactType {
bbcdiskimage = 'bbcdiskimage',
zxtape = 'zxtape',
smsrom = 'smsrom',
timetrace = 'timetracejson',
}
export type Artifact = {